BitConverter.UInt16BitsToHalf(UInt16) Metod

Definition

Viktigt!

Detta API uppfyller inte CLS.

Konverterar det angivna 16-bitars osignerade heltalet till ett flyttal med halv precision.

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

Parametrar

value
UInt16

Talet som ska konverteras.

Returer

Ett flyttal med halv precision vars bitar är identiska med value.

Attribut

Gäller för