Well, you could go here:
Using Predefined Formats (The Java™ Tutorials > Internationalization > Formatting)
Or here:
DecimalFormat (Java 2 Platform SE v1.4.2)
Or
System.out.printf('%.2f',...
Type: Posts; User: javapenguin
Well, you could go here:
Using Predefined Formats (The Java™ Tutorials > Internationalization > Formatting)
Or here:
DecimalFormat (Java 2 Platform SE v1.4.2)
Or
System.out.printf('%.2f',...