語言

BitConverter.SingleToInt32Bits(Single) 方法

定義

將單精度浮點數值轉換為整數。

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

參數

value
Single

要轉換的單精度浮點數。

傳回

一個整數代表轉換後的單精度浮點數值。

適用於