@phensley/cldr-core
Version:
Core library for @phensley/cldr
14 lines • 438 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Compute floor(n / d) and store the remainder in r[0]
*/
exports.floorDiv = function (n, d, r) {
var q = Math.floor(n / d);
r[0] = n % d;
return q;
};
// TODO: used for min/max in date computations
// export const clamp = (v: number, min: number, max: number): number =>
// Math.min(max, Math.max(min, v));
//# sourceMappingURL=utils.js.map