System.Double.System.IConvertible.ToSingle Method

For a description of this member, see IConvertible.ToSingle(IFormatProvider).

Syntax

float System.IConvertible.ToSingle (IFormatProvider provider)

Parameters

provider
This parameter is ignored.

Returns

The value of the current instance, converted to a float.

Remarks

This member is an explicit interface member implementation. It can be used only when the double instance is cast to an IConvertible interface. The recommended alternative is to call the Convert.ToSingle(double) method.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0