Windows Dev Center

Information
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.

Convert.ToSingle Method

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

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToSingle(Boolean) Converts the specified Boolean value to the equivalent single-precision floating-point number.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToSingle(Byte) Converts the value of the specified 8-bit unsigned integer to the equivalent single-precision floating-point number.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToSingle(Char) Calling this method always throws InvalidCastException.
Public method Static member ToSingle(DateTime) Calling this method always throws InvalidCastException.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToSingle(Decimal) Converts the value of the specified decimal number to an equivalent single-precision floating-point number.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToSingle(Double) Converts the value of the specified double-precision floating-point number to an equivalent single-precision floating-point number.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToSingle(Int16) Converts the value of the specified 16-bit signed integer to an equivalent single-precision floating-point number.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToSingle(Int32) Converts the value of the specified 32-bit signed integer to an equivalent single-precision floating-point number.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToSingle(Int64) Converts the value of the specified 64-bit signed integer to an equivalent single-precision floating-point number.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToSingle(Object) Converts the value of the specified object to a single-precision floating-point number.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToSingle(SByte) Converts the value of the specified 8-bit signed integer to the equivalent single-precision floating-point number.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToSingle(Single) Returns the specified single-precision floating-point number; no actual conversion is performed.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToSingle(String) Converts the specified string representation of a number to an equivalent single-precision floating-point number.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToSingle(UInt16) Converts the value of the specified 16-bit unsigned integer to the equivalent single-precision floating-point number.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToSingle(UInt32) Converts the value of the specified 32-bit unsigned integer to an equivalent single-precision floating-point number.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToSingle(UInt64) Converts the value of the specified 64-bit unsigned integer to an equivalent single-precision floating-point number.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework ToSingle(Object, IFormatProvider) Converts the value of the specified object to an single-precision floating-point number, using the specified culture-specific formatting information.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework 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.
Top

Community Additions

Show:
© 2015 Microsoft