Rim 073cff8914 initial commit
migrate files over from github
2025-03-14 07:53:23 -04:00

10 lines
218 B
JavaScript

'use strict';
var $floor = require('./floor');
/** @type {import('./mod')} */
module.exports = function mod(number, modulo) {
var remain = number % modulo;
return $floor(remain >= 0 ? remain : remain + modulo);
};