Over in Reddit I asked the author what’s the goal behind using only integer types?
"Just for fun."
"Just for fun."
Often in DSP, there is just no good reason to use floating point instead of fixed point integers.
The following link is an example of a good quality fixed point math library and shows you how it is done.
https://pkg.go.dev/github.com/shopspring/decimal?utm_source=...
Back in the day, this was the case for the ARMv5 CPUs used by a major phone manufacturer and the software JPEG decoder couldn’t use floats. IIRC you only really needed them when doing YUV -> RGB conversions, so that was all done through integer arithmetic instead.