BitConverter.UInt16BitsToHalf(UInt16) Method

Definition

Important

This API is not CLS-compliant.

Converts the specified 16-bit unsigned integer to a half-precision floating point number.

public:
 static Half UInt16BitsToHalf(System::UInt16 value);
[System.CLSCompliant(false)]
public static Half UInt16BitsToHalf (ushort value);
[<System.CLSCompliant(false)>]
static member UInt16BitsToHalf : uint16 -> Half
Public Shared Function UInt16BitsToHalf (value As UShort) As Half

Parameters

value
UInt16

The number to convert.

Returns

A half-precision floating point number whose bits are identical to value.

Attributes

Applies to