Convert double value from string
String toString()
- Returns a string representation of this Double object.
static String toString(double d)
- Returns a string representation of the double argument.
public class Main {
public static void main(String[] args) {
System.out.println(Double.toString(1.2));
}
}
The output:
1.2
Home
Java Book
Essential Classes
Java Book
Essential Classes
Double:
- Double class
- Constants in Double class
- Double class Constructor
- Return double value as byte, double, float, int, long, short
- Compare two double values
- Is a double value an infinite large value, or it is not a number.
- Convert string value to double
- Convert double value from string
- Get the hexadecimal string representation
- Bit oriented calculation for double type