function readNumeral(value, places) {
	var iVal = parseInt(value, 10);
	var fVal = parseFloat(value);
	var num = (iVal == fVal) ? iVal : fVal;
	if(isNaN(num) || !isFinite(num)) {
		throw "UnexpectedValueException: \"" + value + "\"";
	}
	if(typeof places === "number") num = parseFloat(num.toFixed(places));
	return num;
}
/*
 Parses a string-represented integer or float
*/
Parses a string-represented integer or float
Parses a string - represented integer or float
function readNumeral(value, places) {
	var iVal = parseInt(value, 10);
	var fVal = parseFloat(value);
	var num = (iVal == fVal) ? iVal : fVal;
	if(isNaN(num) || !isFinite(num)) {
		throw "UnexpectedValueException: \"" + value + "\"";
	}
	if(typeof places === "number") num = parseFloat(num.toFixed(places));
	return num;
}
function readNumeral ( value , places ) { var iVal = parseInt ( value , 10 ) ; var fVal = parseFloat ( value ) ; var num = ( iVal == fVal ) ? iVal : fVal ; if ( isNaN ( num ) || ! isFinite ( num ) ) { throw "UnexpectedValueException: \"" + value + "\"" ; } if ( typeof places === "number" ) num = parseFloat ( num . toFixed ( places ) ) ; return num ; }
Parses a string-represented integer or float
Parses a string - represented integer or float