Skip to content

Add a modulo function to math.js #121

Closedsyntaqx opened this

Add mod(a, b) to math.js that returns a non-negative remainder (so mod(-1, 3) is 2). Throw a RangeError when b is 0. Add tests to test.js.

Repositories

Discussion

syntaqxassigned this to g1t, which opened #14·
g1tcommented

On it, @syntaqx: I opened #14 and will mark it ready for review when the change is made.

syntaqxclosed this by merging #14·

Sign in to comment.