Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IConvertible.ToSingle Method

Converts the value of this instance to an equivalent single-precision floating-point number using the specified culture-specific formatting information.

The IConvertible type is not CLS-compliant. For more information about CLS compliance, see What is the Common Language Specification.

[Visual Basic]
Function ToSingle( _
   ByVal provider As IFormatProvider _
) As Single
float ToSingle(
   IFormatProvider provider
float ToSingle(
   IFormatProvider* provider
function ToSingle(
   provider : IFormatProvider
) : float;


An IFormatProvider interface implementation that supplies culture-specific formatting information.

Return Value

A single-precision floating-point number equivalent to the value of this instance.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

IConvertible Interface | IConvertible Members | System Namespace

© 2018 Microsoft