1

I'm trying to get my code to format to two decimal places and I use

venus=String.format("%.2f",planetVenus); 

but the final output still uses more than 2 decimal points.

A--C
  • 36,351
  • 10
  • 106
  • 92
Tate Gahnz
  • 11
  • 1
  • I think this might be able to help you http://stackoverflow.com/questions/12806278/double-decimal-formatting-in-java – Svet Angelov Oct 09 '15 at 00:35

0 Answers0