> I know that there is mod and %%.

There is also floorDiv() and floorMod(), maybe you like that better:

[https://nim-lang.org/docs/math.html#floorDiv%2CT%2CT](https://nim-lang.org/docs/math.html#floorDiv%2CT%2CT)

Reply via email to