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.
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.