IConvertible.ToSingle(IFormatProvider) 方法

定義

使用指定的特定文化特性之格式資訊,將這個執行個體的值轉換為相等的單精確度浮點數。Converts the value of this instance to an equivalent single-precision floating-point number using the specified culture-specific formatting information.

public:
 float ToSingle(IFormatProvider ^ provider);
public float ToSingle (IFormatProvider provider);
abstract member ToSingle : IFormatProvider -> single
Public Function ToSingle (provider As IFormatProvider) As Single

參數

provider
IFormatProvider

IFormatProvider 介面實作,提供特定文化特性的格式資訊。An IFormatProvider interface implementation that supplies culture-specific formatting information.

傳回

單精確度浮點數,等於這個執行個體的值。A single-precision floating-point number equivalent to the value of this instance.

適用於