Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Converting a double to String

807588May 21 2009 — edited May 23 2009
Hi all,

I want to convert a double with a big value (let's say: 99999999 or 99999999.32) to a String.

To convert the value I use Double.toString(double value);

My problem is that if the value is that big, the double value is converted to a string where the double value is displayed with scientific notation.

Does anyone know how can I avoid the scientific notation ?

I want "99999999" and not "9.9999999E7".

How can I do this ?
Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 20 2009
Added on May 21 2009
13 comments
1,575 views