/** * Checks whether or not this Value is Numeric A Value is numeric if it is either of type Number or Integer * * @return true if the value is either of type Number or Integer */ @Override public boolean isNumeric() { return isInteger() || isNumber() || isBigNumber(); }
/** * @return the precision */ @Override public int getPrecision() { // For backward compatibility we need to tweak a bit... // if ( isInteger() || isBinary() ) { return 0; } if ( isString() || isBoolean() ) { return -1; } return precision; }