trailingZeros

Returns the number of trailing zeros in the argument.

uint
trailingZeros
(
BigInt n
,
uint digits
)

Examples

auto big = BigInt("1234567890123456789012300000000000");
auto digits = countDigits(big);
assert(digits == 34);
auto zeros = trailingZeros(big, digits);
assert(zeros == 11);

Meta