double value = 4.507310875086383E-8;
System.out.printf("value is %f%n", value);
System.out.print("value is " + value + "\n");
The output:
value is 0.000000
value is 4.507310875086383E-8
I want to know how to output this number by using System.out.printf
instead of concatenating strings