fn ilog10_roundup(x: u32) -> u8
Compute the smallest n such that 10^n >= x.
Since the input is a u32, this will return a value in the range 0..10.