Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

No 'E' in a big floating point number

 
Ransika deSilva
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Wayne L Johnson
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for the reply.
I would take a look at it.
 
Try 100 things. 2 will work out, but you will never know in advance which 2. This tiny ad might be one:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!