BitConverter.SingleToInt32Bits(Single) Metod

Definition

Konverterar ett flyttal med enkel precision till ett heltal.

public:
 static int SingleToInt32Bits(float value);
public static int SingleToInt32Bits(float value);
static member SingleToInt32Bits : single -> int
Public Shared Function SingleToInt32Bits (value As Single) As Integer

Parametrar

value
Single

Flyttalsvärdet med enkel precision som ska konverteras.

Returer

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

Gäller för