Number.doubleValue()
Signature
double doubleValue (String s)
Description
Returns an double holding the value extracted from the specified String.
The first argument is interpreted as representing a signed double.
The result is a double that represents the double value specified by the string.
Parameters
Name | Type | Description |
s | String | A String with a double format. |
Returns
Type | Description |
double | The value of the double in the String passed. |
Example
double result = Number.doubleValue ("2.2");
Result is: result contains: 2.2d