BitConverter.SingleToUInt32Bits(Single) Method

Definition

Important

This API is not CLS-compliant.

Converts the specified single-precision floating point number to a 32-bit unsigned integer.

C#
[System.CLSCompliant(false)]
public static uint SingleToUInt32Bits(float value);

Parameters

value
Single

The number to convert.

Returns

A 32-bit unsigned integer whose bits are identical to value.

Attributes

Applies to

Produit Versions
.NET 6, 7, 8, 9, 10