New course! Every coder should learn Generative AI!
Try a free lesson0
How to round number after decimal useing double
Example 38.567 but I want the print to say 38.57?
1 Answer
+ 15
System.out.printf("%.2f", 38.567);
Example 38.567 but I want the print to say 38.57?