Code coverage report for math/ceil.js

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

All files » math/ » ceil.js
1 2 3 4 5 6 7 8 9 10 11 121       1 15 15     1    
define(function(){
    /**
     * Round value up with a custom radix.
     */
    function ceil(val, step){
        step = Math.abs(step || 1);
        return Math.ceil(val / step) * step;
    }
 
    return ceil;
});