Expand description
Maximum and minimum values for Decimal256, Decimal128, Decimal64 and Decimal32.
Also provides functions to validate if a given decimal value is within the valid range of the decimal type.
Constants§
- DECIMA
L32_ DEFAULT_ SCALE - The default scale for [DataType::Decimal32] values
- DECIMA
L32_ MAX_ PRECISION - The maximum precision for [DataType::Decimal32] values
- DECIMA
L32_ MAX_ SCALE - The maximum scale for [DataType::Decimal32] values
- DECIMA
L64_ DEFAULT_ SCALE - The default scale for [DataType::Decimal64] values
- DECIMA
L64_ MAX_ PRECISION - The maximum precision for [DataType::Decimal64] values
- DECIMA
L64_ MAX_ SCALE - The maximum scale for [DataType::Decimal64] values
- 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 L32_ FOR_ EACH_ PRECISION MAX_DECIMAL32_FOR_EACH_PRECISION[p]holds the maximumi32value that can be stored inDecimal32value of precisionp.- MAX_
DECIMA L64_ FOR_ EACH_ PRECISION MAX_DECIMAL64_FOR_EACH_PRECISION[p]holds the maximumi64value that can be stored inDecimal64value of precisionp.- 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 L32_ FOR_ EACH_ PRECISION MIN_DECIMAL32_FOR_EACH_PRECISION[p]holds the minimumialue that can be stored in a [Decimal32] value of precisionp`.- MIN_
DECIMA L64_ FOR_ EACH_ PRECISION MIN_DECIMAL64_FOR_EACH_PRECISION[p]holds the minimumi64value that can be stored in aDecimal64value 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§
- format_
decimal_ str - Formats a decimal string given the precision and scale.
- format_
decimal_ 🔒str_ internal - is_
validate_ decimal32_ precision - Returns true if the specified
i32value can be properly interpreted as aDecimal32number with precisionprecision - is_
validate_ decimal64_ precision - Returns true if the specified
i64value can be properly interpreted as aDecimal64number with precisionprecision - 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_
decimal32_ precision - Validates that the specified
i32value can be properly interpreted as aDecimal32number with precisionprecision - validate_
decimal64_ precision - Validates that the specified
i64value can be properly interpreted as aDecimal64number 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