java - How to disable auto-converting to exponential expression when using Double.parseDouble()? -
when run following program:
system.out.println(double.parsedouble("99999999999999") + 1);
i got: 1.0e14
how can disable auto-conversion 100000000000000.0
?
that has nothing double.parsedouble
, , double.tostring
.
try this:
system.out.printf("%.1f", double.parsedouble("99999999999999") + 1);
Comments
Post a Comment