function abs(arg) {
        var result;

        // undefined inputs always return undefined
        if (typeof arg === 'undefined') {
            return undefined;
        }

        result = Math.abs(arg);
        return result;
    }
Absolute value of a number
@param {Number} arg - Argument
@returns {Number} absolute value of argument