BitConverter.UInt16BitsToHalf(UInt16) Methode

Definition

Wichtig

Diese API ist nicht CLS-kompatibel.

Wandelt die angegebene 16-Bit-ganzzahl ohne Vorzeichen in eine Gleitkommazahl mit halber Genauigkeit um.

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

Parameter

value
UInt16

Die zahl, die konvertiert werden soll.

Gibt zurück

Gleitkommazahl mit halber Genauigkeit, deren Bits identisch sind value.

Attribute

Gilt für: