Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Convert.ToSingle Method

Converts a specified value to a single-precision floating point number.

Name Description
Convert.ToSingle (Boolean) Converts the value of the specified Boolean value to the equivalent single-precision floating point number.

Supported by the .NET Compact Framework.

Convert.ToSingle (Byte) Converts the value of the specified 8-bit unsigned integer to the equivalent single-precision floating point number.

Supported by the .NET Compact Framework.

Convert.ToSingle (Char) Calling this method always throws InvalidCastException.

Supported by the .NET Compact Framework.

Convert.ToSingle (DateTime) Calling this method always throws InvalidCastException.
Convert.ToSingle (Decimal) Converts the value of the specified Decimal number to an equivalent single-precision floating point number.

Supported by the .NET Compact Framework.

Convert.ToSingle (Double) Converts the value of the specified double-precision floating point number to an equivalent single-precision floating point number.

Supported by the .NET Compact Framework.

Convert.ToSingle (Int16) Converts the value of the specified 16-bit signed integer to an equivalent single-precision floating point number.

Supported by the .NET Compact Framework.

Convert.ToSingle (Int32) Converts the value of the specified 32-bit signed integer to an equivalent single-precision floating point number.

Supported by the .NET Compact Framework.

Convert.ToSingle (Int64) Converts the value of the specified 64-bit signed integer to an equivalent single-precision floating point number.

Supported by the .NET Compact Framework.

Convert.ToSingle (Object) Converts the value of the specified Object to a single-precision floating point number.

Supported by the .NET Compact Framework.

Convert.ToSingle (SByte) Converts the value of the specified 8-bit signed integer to the equivalent single-precision floating point number.

Supported by the .NET Compact Framework.

Convert.ToSingle (Single) Returns the specified single-precision floating point number; no actual conversion is performed.

Supported by the .NET Compact Framework.

Convert.ToSingle (String) Converts the specified String representation of a number to an equivalent single-precision floating point number.

Supported by the .NET Compact Framework.

Convert.ToSingle (UInt16) Converts the value of the specified 16-bit unsigned integer to the equivalent single-precision floating point number.

Supported by the .NET Compact Framework.

Convert.ToSingle (UInt32) Converts the value of the specified 32-bit unsigned integer to an equivalent single-precision floating point number.

Supported by the .NET Compact Framework.

Convert.ToSingle (UInt64) Converts the value of the specified 64-bit unsigned integer to an equivalent single-precision floating point number.

Supported by the .NET Compact Framework.

Convert.ToSingle (Object, IFormatProvider) Converts the value of the specified Object to an single-precision floating point number using the specified culture-specific formatting information.

Supported by the .NET Compact Framework.

Convert.ToSingle (String, IFormatProvider) Converts the specified String representation of a number to an equivalent single-precision floating point number using the specified culture-specific formatting information.

Supported by the .NET Compact Framework.

Community Additions

ADD
Show:
© 2015 Microsoft