aspose file tools*
The moose likes Beginning Java and the fly likes No 'E' in a big floating point number Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "No Watch "No New topic
Author

No 'E' in a big floating point number

Ransika deSilva
Ranch Hand

Joined: Feb 18, 2003
Posts: 524
Hello world,
Could you please tell me how to get rid of the 'E' which appears when a big valued floating point number in a text field. Say 1.03E7 like that.
Thanks


SCJP 1.4, SCMAD 1.0<br />SCWCD, SCBCD (in progress)
Wayne L Johnson
Ranch Hand

Joined: Sep 03, 2003
Posts: 399
Take a look at the java.text.DecimalFormat class. You can specify a format, which might include commas or decimal points or parenthesis (for negative number), and number of digits after the decimal point.
Ransika deSilva
Ranch Hand

Joined: Feb 18, 2003
Posts: 524
Thank you very much for the reply.
I would take a look at it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No 'E' in a big floating point number