+ 2

Help me!

a = 1.23466 so how to print to the screen value of a is 1.23

12th Feb 2017, 11:35 AM
School Dog
1 Respuesta
+ 4
System.out.printf ("The value of a is %.2f", a); This should do what you want.
12th Feb 2017, 12:48 PM
Adam