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

dispaly an exponential value in numbers

 
V
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..,

I need to dispaly an exponential value in numbers
(ex: 1.234E3 as 1234)
I think it is possible to do with NumberFormat in java.text.
But i'm unable get the format ...
Plz provide me some help with sample code...

Thanks in advance...!
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

First, a bit of business: our naming policy requires that you use a real first and last name, not a "handle", for your display name. If you could head over here and fix that for me, I'd be much obliged. Thanks.

Second, I'm not sure exactly what you're asking, but the Javadoc for DecimalFormat gives some pretty clear examples:

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!