Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 159 Bytes

modulo.md

File metadata and controls

10 lines (7 loc) · 159 Bytes

modulo

Modulo implementation which always gives a result with the same sign as the divisor.

Where

-1 % 100 == -1
modulo(-1, 100) == 99