build/components_concat.js
function mkNumber(val) {
            var sign = 1;
            if (val.charAt(0) == '-') {
                sign = -1;
                val = val.substring(1);
            }
            if (Lang.NUMBER_DEC.test(val))
                return sign * parseInt(val, 10);
            else if (Lang.NUMBER_HEX.test(val))
                return sign * parseInt(val.substring(2), 16);
            else if (Lang.NUMBER_OCT.test(val))
                return sign * parseInt(val.substring(1), 8);
            else if (val === 'inf')
                return sign * Infinity;
            else if (val === 'nan')
                return NaN;
            else if (Lang.NUMBER_FLT.test(val))
                return sign * parseFloat(val);
            throw Error("illegal number value: " + (sign < 0 ? '-' : '') + val);
        }
function mkNumber(val) {
            var sign = 1;
            if (val.charAt(0) == '-') {
                sign = -1;
                val = val.substring(1);
            }
            if (Lang.NUMBER_DEC.test(val))
                return sign * parseInt(val, 10);
            else if (Lang.NUMBER_HEX.test(val))
                return sign * parseInt(val.substring(2), 16);
            else if (Lang.NUMBER_OCT.test(val))
                return sign * parseInt(val.substring(1), 8);
            else if (val === 'inf')
                return sign * Infinity;
            else if (val === 'nan')
                return NaN;
            else if (Lang.NUMBER_FLT.test(val))
                return sign * parseFloat(val);
            throw Error("illegal number value: " + (sign < 0 ? '-' : '') + val);
        }
function mkNumber ( val ) { var sign = 1 ; if ( val . charAt ( 0 ) == '-' ) { sign = - 1 ; val = val . substring ( 1 ) ; } if ( Lang . NUMBER_DEC . test ( val ) ) return sign * parseInt ( val , 10 ) ; else if ( Lang . NUMBER_HEX . test ( val ) ) return sign * parseInt ( val . substring ( 2 ) , 16 ) ; else if ( Lang . NUMBER_OCT . test ( val ) ) return sign * parseInt ( val . substring ( 1 ) , 8 ) ; else if ( val === 'inf' ) return sign * Infinity ; else if ( val === 'nan' ) return NaN ; else if ( Lang . NUMBER_FLT . test ( val ) ) return sign * parseFloat ( val ) ; throw Error ( "illegal number value: " + ( sign < 0 ? '-' : '' ) + val ) ; }
Converts a numerical string to a number.
@param {string} val
@returns {number}
@inner
Converts a numerical string to a number .