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!

How to convert a floating point number to string?

807588Jul 9 2009 — edited Jul 10 2009
How to convert a floating point number to string?
Example: Floating point number is 1234.567E02, then convert to string is 123456.7, Not "1234.567E02"
I used Float.toString(float) and String.valueOf(float) but they are not satisfy to me.
Please help me. Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 7 2009
Added on Jul 9 2009
2 comments
420 views