//What u r searching for is:: double pi = 355/113; System.out.printf("Value of pi is approx = %.6f", pi); //Thanks! If u like the result pls upvote or something pls!