how do we represent a "double" in the standard format?
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
-
hello how do i dp the following? (2 messages)
- Posted by: kota sri ranga sai
- Posted on: July 25 2001 06:48 EDT
Threaded Messages (2)
- hello how do i dp the following? by Andy Nguyen on July 25 2001 10:24 EDT
- hello how do i dp the following? by Albert Zamus on July 25 2001 13:48 EDT
-
hello how do i dp the following?[ Go to top ]
- Posted by: Andy Nguyen
- Posted on: July 25 2001 10:24 EDT
- in response to kota sri ranga sai
Take a look at java.text.NumberFormat. It should provide functionality you're looking for.
Andy -
hello how do i dp the following?[ Go to top ]
- Posted by: Albert Zamus
- Posted on: July 25 2001 13:48 EDT
- in response to kota sri ranga sai
Ok do this.
DecimalFormat d = new DecimalFormat();
d.applyPattern("#.##");
String s = d.format(argDouble);