function parseValue(value) {
    const val = parseFloat(value.toString());
    if (isNaN(val)) {
        throw new Error(`Input value is not a number`);
    }
    if (val > Number.MAX_SAFE_INTEGER || val < Number.MIN_SAFE_INTEGER) {
        throw new RangeError("Input value is outside of safe integer range");
    }
    return val;
}
/**
 * parseValue ensures the value is a number and within accepted range.
 */
parseValue ensures the value is a number and within accepted range.
parseValue ensures the value is a number and within accepted range .
function parseValue(value) {
    const val = parseFloat(value.toString());
    if (isNaN(val)) {
        throw new Error(`Input value is not a number`);
    }
    if (val > Number.MAX_SAFE_INTEGER || val < Number.MIN_SAFE_INTEGER) {
        throw new RangeError("Input value is outside of safe integer range");
    }
    return val;
}
function parseValue ( value ) { const val = parseFloat ( value . toString ( ) ) ; if ( isNaN ( val ) ) { throw new Error ( ` ` ) ; } if ( val > Number . MAX_SAFE_INTEGER || val < Number . MIN_SAFE_INTEGER ) { throw new RangeError ( "Input value is outside of safe integer range" ) ; } return val ; }
parseValue ensures the value is a number and within accepted range.
parseValue ensures the value is a number and within accepted range .