Friday, 15 May 2015

java - how to double values alphabet to numbers? -



java - how to double values alphabet to numbers? -

add many values , stored double value..

its value 3.2179465e7

but actual value 32 179 465.00

how convert 32 179 465.00 3.2179465e7

assuming value in scientific notation string, can this:

double d = double.parsedouble("3.2179465e7"); decimalformat df = new decimalformat("#.00"); system.out.println(df.format(d));

java double data-type-conversion

No comments:

Post a Comment