Number.doubleValue()

Signature

double doubleValue (String s)

Domain

action, condition

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

NameTypeDescription
sStringA String with a double format.

Returns

TypeDescription
doubleThe value of the double in the String passed.

Cautions

none

Example


double result = Number.doubleValue ("2.2");

Result is: result contains: 2.2d