| Author |
Double Value
|
Natraj Gudla
Ranch Hand
Joined: Feb 09, 2003
Posts: 34
|
|
Hi, I have a double value which prints a lot of digits after the decimal. how do i control the number of digits after the decimal. regards
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24081
|
|
You can use the java.text.DecimalFormat class to prepare formatted Strings from your double value -- i.e., prints 123.456 .
|
[Jess in Action][AskingGoodQuestions]
|
 |
 |
|
|
subject: Double Value
|
|
|