Edit

Share via


UInt32.LeadingZeroCount(UInt32) Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Computes the number of leading zeros in a value.

C#
public static uint LeadingZeroCount(uint value);

Parameters

value
UInt32

The value whose leading zeroes are to be counted.

Returns

The number of leading zeros in value.

Implements

Applies to

Product Versions
.NET 7, 8, 9, 10