BitConverter.HalfToInt16Bits(Half) Metod

Definition

Konverterar ett flyttal med halv precision till ett 16-bitars heltal.

public:
 static short HalfToInt16Bits(Half value);
public static short HalfToInt16Bits(Half value);
static member HalfToInt16Bits : Half -> int16
Public Shared Function HalfToInt16Bits (value As Half) As Short

Parametrar

value
Half

Flyttalsvärdet med halv precision som ska konverteras.

Returer

Ett heltal som representerar det konverterade flyttalvärdet med halv precision.

Gäller för