Bit32.countrz

From GiderosMobile
Revision as of 20:04, 22 January 2023 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2022.3<br/> '''Class:''' bit32<br/> === Description === Returns the number of consecutive zero bits in the 32-bit representation...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Available since: Gideros 2022.3
Class: bit32

Description

Returns the number of consecutive zero bits in the 32-bit representation of the provided number starting from the right-most (least significant) bit. Returns 32 if the provided number is zero.

(number) = bit32.countrz(n)

Parameters

n: (number) value

Return values

Returns (number) result, returns 32 if the provided number is zero

See also

Bitwise Operators