build/SPE.js
function( n, multiple ) {
        'use strict';

        var remainder = 0;

        if ( multiple === 0 ) {
            return n;
        }

        remainder = Math.abs( n ) % multiple;

        if ( remainder === 0 ) {
            return n;
        }

        if ( n < 0 ) {
            return -( Math.abs( n ) - remainder );
        }

        return n + multiple - remainder;
    }
function( n, multiple ) {
        'use strict';

        var remainder = 0;

        if ( multiple === 0 ) {
            return n;
        }

        remainder = Math.abs( n ) % multiple;

        if ( remainder === 0 ) {
            return n;
        }

        if ( n < 0 ) {
            return -( Math.abs( n ) - remainder );
        }

        return n + multiple - remainder;
    }
function ( n , multiple ) { 'use strict' ; var remainder = 0 ; if ( multiple === 0 ) { return n ; } remainder = Math . abs ( n ) % multiple ; if ( remainder === 0 ) { return n ; } if ( n < 0 ) { return - ( Math . abs ( n ) - remainder ) ; } return n + multiple - remainder ; }
Rounds a number to a nearest multiple.

@param  {Number} n        The number to round.
@param  {Number} multiple The multiple to round to.
@return {Number}          The result of the round operation.
Rounds a number to a nearest multiple .