Freigeben über


Double.ParseDouble(String) Method

Definition

Returns a new double initialized to the value represented by the specified String, as performed by the valueOf method of class Double.

[Android.Runtime.Register("parseDouble", "(Ljava/lang/String;)D", "")]
public static double ParseDouble (string s);
[<Android.Runtime.Register("parseDouble", "(Ljava/lang/String;)D", "")>]
static member ParseDouble : string -> double

Parameters

s
String

the string to be parsed.

Returns

the double value represented by the string argument.

Attributes

Exceptions

if string cannot be parsed as a double value.

Remarks

Returns a new double initialized to the value represented by the specified String, as performed by the valueOf method of class Double.

Added in 1.2.

Java documentation for java.lang.Double.parseDouble(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to