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!

problem in double value

807580Sep 25 2009 — edited Sep 25 2009
Hi,

I'm facing a problem when getting a value from the double type variable.
double d = 99999999;
System.out.println(d);
The output is: 9.9999999E7

What should I do so that the out will come in decimal format only.

Thanks
Gaurav Agrawal
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 23 2009
Added on Sep 25 2009
10 comments
581 views