Wan2.1/web_interface/node_modules/math-intrinsics/mod.js
2025-05-17 10:46:44 +00: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);
};