Code coverage report for math/round.js

Statements: 100% (6 / 6)      Branches: 100% (2 / 2)      Functions: 100% (3 / 3)      Lines: 100% (5 / 5)     

All files » math/ » round.js
1 2 3 4 5 6 7 8 9 10 11 12 131       1 36 36     1      
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;
 
});