Closed shouttrickword closed 3 years ago
Rust modulo operator behaves strangely on floating point numbers in certain situations, a bit more information about this is available at the euclidean modulo rfc.
A working workaround is to convert the number into integer first and then modulo.
Also closes #28
Rust modulo operator behaves strangely on floating point numbers in certain situations, a bit more information about this is available at the euclidean modulo rfc.
A working workaround is to convert the number into integer first and then modulo.