ConvertToDouble Method (Object, IFormatProvider) |
Converts the value of the specified object to an double-precision floating-point number, using the specified culture-specific formatting information.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public static double ToDouble(
Object value,
IFormatProvider provider
)
Parameters
- value
- Type: SystemObject
An object that implements the IConvertible interface. - provider
- Type: SystemIFormatProvider
An object that supplies culture-specific formatting information.
Return Value
Type:
DoubleA double-precision floating-point number that is equivalent to
value, or zero if
value is null.
Exceptions See Also