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 13 14 151           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;
 
});