On Saturday, 25 December 2021 at 13:39:14 UTC, Temtaime wrote: > To get correct results use > > fnum = u64(-num) + 1; > > there's no bug. > > Also get rid of your *_MAX, *_MIN. > Use u8.max, i8.min built-in properties etc. And max length of a integral can be obtained using ```log10(n)+1```, you don't need a bunch of static ifs.