Прочетете на английски Редактиране

Споделяне чрез


BitConverter.SingleToInt32Bits(Single) Method

Definition

Converts a single-precision floating-point value into an integer.

C#
public static int SingleToInt32Bits(float value);

Parameters

value
Single

The single-precision floating-point value to convert.

Returns

An integer representing the converted single-precision floating-point value.

Applies to

Продукт Версии
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1