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

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -