function readNumeral(value) {
    var number;
    if(parseFloat(value) == parseInt(value, 10)) {
        number = parseInt(value, 10);
    } else {
        number = parseFloat(value);
    }
    if(isNaN(number) || !isFinite(number)) {
        throw "UnexpectedValueException";
    }
    return number;
}
/*
 Parses a string-represented integer or float
*/
Parses a string-represented integer or float
Parses a string - represented integer or float
function readNumeral(value) {
    var number;
    if(parseFloat(value) == parseInt(value, 10)) {
        number = parseInt(value, 10);
    } else {
        number = parseFloat(value);
    }
    if(isNaN(number) || !isFinite(number)) {
        throw "UnexpectedValueException";
    }
    return number;
}
function readNumeral ( value ) { var number ; if ( parseFloat ( value ) == parseInt ( value , 10 ) ) { number = parseInt ( value , 10 ) ; } else { number = parseFloat ( value ) ; } if ( isNaN ( number ) || ! isFinite ( number ) ) { throw "UnexpectedValueException" ; } return number ; }
Parses a string-represented integer or float
Parses a string - represented integer or float