Byte.LeadingZeroCount(Byte) Method

Definition

Computes the number of leading zeros in a value.

C#
public static byte LeadingZeroCount (byte value);

Parameters

value
Byte

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