19 ms·
Specifically, the index in C10 where a decimal number dec of n digits may be found is n * dec - (10^(n-1)-1) `div` 9 + 1 - 10^(n-1)
by tromp 3y ago
Specifically, the index in C10 where a decimal number dec of n digits may be found is
n * dec - (10^(n-1)-1) `div` 9 + 1 - 10^(n-1)