Skip to main content

digit_count

Function digit_count 

Source
pub const fn digit_count(n: u16) -> usize
Expand description

Number of decimal digits in a u16. Branchy table — faster than ilog10 on the small range we feed it (cursor coordinates, repeat counts).