Edit

Share via


Convert.ToNumber Method

Definition

Converts values to Double structures.

Overloads

ToNumber(Object)

This API supports the product infrastructure and is not intended to be used directly from your code.

Converts the specified Object to a Double.

ToNumber(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Converts the specified String to a Double.

ToNumber(Object)

Converts the specified Object to a Double.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 static double ToNumber(System::Object ^ value);
public static double ToNumber (object value);
static member ToNumber : obj -> double
Public Shared Function ToNumber (value As Object) As Double

Parameters

value
Object

The value to convert.

Returns

value converted to a Double.

Applies to

ToNumber(String)

Converts the specified String to a Double.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 static double ToNumber(System::String ^ str);
public static double ToNumber (string str);
static member ToNumber : string -> double
Public Shared Function ToNumber (str As String) As Double

Parameters

str
String

The value to convert.

Returns

str converted to a Double.

Applies to