S
Saehoon
Hi guys,
I'd like to parse the String to double value.
But String has a minus value such as "-1", "-2"...
I used the Double.parseDouble(String s); method.
The example code is
String s = "-1";
double d = Double.parseDouble(s);
This doesn't seem to work properly.
How can I correctly parse the minus value?
I'd like to parse the String to double value.
But String has a minus value such as "-1", "-2"...
I used the Double.parseDouble(String s); method.
The example code is
String s = "-1";
double d = Double.parseDouble(s);
This doesn't seem to work properly.
How can I correctly parse the minus value?