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);
}
}"
:)
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:
Thank u
if the double value is 12345679012.12, can it be converted to string?
it wont work if double is > 10^3... it will return scientific format not the normal decimal format...
Post a Comment
<< Home