how do we represent a "double" in the standard format?
- Posted by: kota sri ranga sai
- Posted on: July 25 2001 06:48 EDT
for example say we have a number and if we say double it gives us the exponential format, instead i want to get numbers. can u help me on this
Take a look at java.text.NumberFormat. It should provide functionality you're looking for.
Ok do this.
DecimalFormat d = new DecimalFormat();
String s = d.format(argDouble);