| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 1 1 36 36 1 | define(['./floor'], function (floor) {
/**
* Round number to a specific radix
* @version 0.1.0 (2012/11/27)
*/
function round(value, radix){
radix = radix || 1; // default round 1
return floor(value + radix / 2, radix);
}
return round;
});
|