Moved getPrecision, getScale to NumberValue.