There are two ways to do this. The "easier" method is to use the printf() method for displaying output.
double myNumber = 1234.56789;
System.out.printf("My number to two decimal places:...
Type: Posts; User: helloworld922
There are two ways to do this. The "easier" method is to use the printf() method for displaying output.
double myNumber = 1234.56789;
System.out.printf("My number to two decimal places:...