Edit

Share via


Int32.TrailingZeroCount(Int32) 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 trailing zeros in a value.

C#
public static int TrailingZeroCount(int value);

Parameters

value
Int32

The value whose trailing zeroes are to be counted.

Returns

The number of trailing zeros in value.

Implements

Applies to

Product Versions
.NET 7, 8, 9, 10