Packages

A web application in pursuit of meaning in life.

Retired package: Complete rewrite, scratch old versions

Current section

Files

Jump to
udia assets node_modules mout src math round.js
Raw

assets/node_modules/mout/src/math/round.js

define(function () {
/**
* Round number to a specific radix
*/
function round(value, radix){
radix = radix || 1; // default round 1
return Math.round(value / radix) * radix;
}
return round;
});