Expand description
Maximum and minimum values for Decimal256 and Decimal128.
Also provides functions to validate if a given decimal value is within the valid range of the decimal type.
Constants§
- DECIMA
L128_ MAX_ PRECISION - The maximum precision for DataType::Decimal128 values
- DECIMA
L128_ MAX_ SCALE - The maximum scale for DataType::Decimal128 values
- DECIMA
L256_ MAX_ PRECISION - The maximum precision for DataType::Decimal256 values
- DECIMA
L256_ MAX_ SCALE - The maximum scale for DataType::Decimal256 values
- DECIMAL_
DEFAULT_ SCALE - The default scale for DataType::Decimal128 and DataType::Decimal256 values
- MAX_
DECIMA L128_ FOR_ EACH_ PRECISION MAX_DECIMAL128_FOR_EACH_PRECISION[p]holds the maximumi128value that can be stored inDecimal128value of precisionp.- MAX_
DECIMA L256_ FOR_ EACH_ PRECISION MAX_DECIMAL256_FOR_EACH_PRECISION[p]holds the maximumi256value that can be stored in aDecimal256value of precisionp.- MAX_
DECIMAL_ FOR_ EACH_ PRECISION Deprecated MAX_DECIMAL_FOR_EACH_PRECISION[p-1]holds the maximumi128value that can be stored in aDecimal128value of precisionp- MIN_
DECIMA L128_ FOR_ EACH_ PRECISION MIN_DECIMAL_FOR_EACH_PRECISION[p]holds the minimumi128value that can be stored in aDecimal128value of precisionp.- MIN_
DECIMA L256_ FOR_ EACH_ PRECISION MIN_DECIMAL256_FOR_EACH_PRECISION[p]holds the minimumi256value that can be stored in aDecimal256value of precisionp.- MIN_
DECIMAL_ FOR_ EACH_ PRECISION Deprecated MIN_DECIMAL_FOR_EACH_PRECISION[p-1]holds the minimumi128value that can be stored in aDecimal128value of precisionp
Functions§
- is_
validate_ decimal256_ precision - Return true if the specified
i256value can be properly interpreted as aDecimal256number with precisionprecision - is_
validate_ decimal_ precision - Returns true if the specified
i128value can be properly interpreted as aDecimal128number with precisionprecision - validate_
decimal256_ precision - Validates that the specified
i256of value can be properly interpreted as aDecimal256number with precisionprecision - validate_
decimal_ precision - Validates that the specified
i128value can be properly interpreted as aDecimal128number with precisionprecision