BitConverter.Int16BitsToHalf(Int16) Metod

Definition

Omtolkar det angivna 16-bitars signerade heltalsvärdet som ett flyttal med halv precision.

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

Parametrar

value
Int16

Det 16-bitars signerade heltalsvärdet som ska konverteras.

Returer

Ett flyttal med halv precision som representerar det konverterade heltalet.

Gäller för