Code coverage report for math/ceil.js

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

All files » math/ » ceil.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 151           1 15 15     1      
define(['./floor'], function(floor){
 
    /**
     * Round value up with a custom radix.
     * @version 0.1.0 (2012/11/30)
     */
    function ceil(val, step){
        step = step || 1;
        return val % step? floor(val + Math.abs(step), step) : val;
    }
 
    return ceil;
 
});