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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

String valueOf(1.0E-4) is not 0.0001

807603Nov 21 2007 — edited Nov 21 2007
When having the number a = 1.0E-4, I would like to represent it as:
0.0001.

How can I convert this number so that String valueOf(a) understands it as:
0.0001?

Thanks in advance!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 19 2007
Added on Nov 21 2007
5 comments
3,384 views