Skip to Main Content

New to Java

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!

Double.parseDouble returning 2.0E7

807599May 8 2007 — edited May 8 2007
Hi,

I have a piece of code (snippet below)

double aggrAmount=0.0;
Tag t;

aggrAmount=Double.parseDouble(t.getValue().substring(t.getValue().lastIndexOf("/")+1, t.getValue().length()-1));

where t="AGGR//FAMT/20000000,"

when i check aggrAmount the value is 2.0E7. How can i get the value as it is?

PLs help...

THanks for your time and advice
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 5 2007
Added on May 8 2007
9 comments
2,605 views