Tuesday, June 07, 2005

Java Examples: Convert double to string

How many times do I have to do this?

:)


Java Examples: Convert double to string: "public class ConvertDoubleToString {
public static void main(String[] args) {
double aDouble = 0.11;
String aString = Double.toString(aDouble);
}
}"

3 Comments:

Blogger Unknown said...

Thank u

2:20 AM  
Blogger Angeldust said...

if the double value is 12345679012.12, can it be converted to string?

1:29 AM  
Blogger Arpan said...

it wont work if double is > 10^3... it will return scientific format not the normal decimal format...

9:47 AM  

Post a Comment

<< Home