편집

다음을 통해 공유


FormatterConverter.ToDouble(Object) Method

Definition

Converts a value to a double-precision floating-point number.

public:
 virtual double ToDouble(System::Object ^ value);
public double ToDouble (object value);
abstract member ToDouble : obj -> double
override this.ToDouble : obj -> double
Public Function ToDouble (value As Object) As Double

Parameters

value
Object

The object to convert.

Returns

The converted value or null if the type parameter is null.

Implements

Exceptions

The value parameter is null.

Remarks

This method uses the invariant culture (see CultureInfo.InvariantCulture). To use the current culture or to specify a culture, use the Convert.ToDouble method instead. For more information, see Double, Convert, and ValueType.

Applies to