tuweni / org.apache.tuweni.units.bigints / UInt256Value / numberOfLeadingZeros

numberOfLeadingZeros

open fun numberOfLeadingZeros(): Int (source)

Provides the number of zero bits preceding the highest-order one-bit.

Return
Int: the number of zero bits preceding the highest-order ("leftmost") one-bit in the binary representation of this value, or 256 if the value is equal to zero.