README
Finds remainder of x/y with sign of y (floored division). :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:
This is part of package extra-math.
This is browserified, minified version of @extra-math/mod.
It is exported as global variable math_mod.
CDN: unpkg, jsDelivr.
math.mod(x, y);
// x: dividend
// y: divisor
const math = require("extra-math");
math.mod(1, 10);
// 1
math.mod(-1, 10);
// 9
math.mod(1, -10);
// -9