This documentation is archived and is not being maintained.

Convert.ToSingle Method (UInt16)

.NET Framework 1.1

Converts the value of the specified 16-bit unsigned integer to the equivalent single-precision floating point number.

This method is not CLS-compliant. For more information about CLS compliance, see What is the Common Language Specification.

[Visual Basic]
<CLSCompliant(False)>
Overloads Public Shared Function ToSingle( _
   ByVal value As UInt16 _
) As Single
[C#]
[CLSCompliant(false)]
public static float ToSingle(
 ushort value
);
[C++]
[CLSCompliant(false)]
public: static float ToSingle(
 unsigned short value
);
[JScript]
public
   CLSCompliant(false)
static function ToSingle(
 value : UInt16
) : float;

Parameters

value
A 16-bit unsigned integer.

Return Value

The single-precision floating point number equivalent to the value of value.

Requirements

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, Common Language Infrastructure (CLI) Standard

See Also

Convert Class | Convert Members | System Namespace | Convert.ToSingle Overload List

Show: