I am trying to round 113.10285 down to 113.10 but all I get is 113.1 How do i round it to 2 decimal places with the 0.
Asked
Active
Viewed 393 times
0
-
Maybe you need to specify the display format differently? – James McLeod Dec 04 '17 at 02:02
-
System.out.printf("%.2f", 113.10285); – Dylan Kelly Dec 04 '17 at 03:42