Skip to main content

trailing_zeros_base10

Function trailing_zeros_base10 

Source
fn trailing_zeros_base10(n: u128) -> u32
Expand description

Counts how many trailing (decimal) zeros n has, i.e. the largest k for which 10^k divides n evenly. n must be non-zero: 0 is a multiple of every power of ten, which would loop forever. Callers filter out zero time stamps beforehand.