I want to print a double value in Java without exponential form.
double dexp = 12345678;
System.out.println("dexp: "+dexp);
It shows this E notation: 1.2345678E7
.
I want it to print it like this: 12345678
What is the best way to prevent this?
I want to print a double value in Java without exponential form.
double dexp = 12345678;
System.out.println("dexp: "+dexp);
It shows this E notation: 1.2345678E7
.
I want it to print it like this: 12345678
What is the best way to prevent this?