共用方式為


BitConverter.SingleToUInt32Bits(Single) 方法

定義

重要

此 API 不符合 CLS 規範。

將指定的單精確度浮點數轉換為 32 位不帶正負號的整數。

public:
 static System::UInt32 SingleToUInt32Bits(float value);
[System.CLSCompliant(false)]
public static uint SingleToUInt32Bits (float value);
[<System.CLSCompliant(false)>]
static member SingleToUInt32Bits : single -> uint32
Public Shared Function SingleToUInt32Bits (value As Single) As UInteger

參數

value
Single

要轉換的數字。

傳回

UInt32

32 位不帶正負號的整數,其位與 value 相同。

屬性

適用於