BitConverter.HalfToUInt16Bits(Half) Metod

Definition

Viktigt!

Detta API uppfyller inte CLS.

Konverterar det angivna flyttalsnumret med halv precision till ett 16-bitars osignerat heltal.

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

Parametrar

value
Half

Talet som ska konverteras.

Returer

Ett 16-bitars osignerat heltal vars bitar är identiska med value.

Attribut

Gäller för