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 maximumi32
value that can be stored inDecimal32
value of precisionp
.- MAX_
DECIMA L64_ FOR_ EACH_ PRECISION MAX_DECIMAL64_FOR_EACH_PRECISION[p]
holds the maximumi64
value that can be stored inDecimal64
value of precisionp
.- MAX_
DECIMA L128_ FOR_ EACH_ PRECISION MAX_DECIMAL128_FOR_EACH_PRECISION[p]
holds the maximumi128
value that can be stored inDecimal128
value of precisionp
.- MAX_
DECIMA L256_ FOR_ EACH_ PRECISION MAX_DECIMAL256_FOR_EACH_PRECISION[p]
holds the maximumi256
value that can be stored in aDecimal256
value of precisionp
.- MAX_
DECIMAL_ FOR_ EACH_ PRECISION Deprecated MAX_DECIMAL_FOR_EACH_PRECISION[p-1]
holds the maximumi128
value that can be stored in aDecimal128
value 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 precision
p`.- MIN_
DECIMA L64_ FOR_ EACH_ PRECISION MIN_DECIMAL64_FOR_EACH_PRECISION[p]
holds the minimumi64
value that can be stored in aDecimal64
value of precisionp
.- MIN_
DECIMA L128_ FOR_ EACH_ PRECISION MIN_DECIMAL_FOR_EACH_PRECISION[p]
holds the minimumi128
value that can be stored in aDecimal128
value of precisionp
.- MIN_
DECIMA L256_ FOR_ EACH_ PRECISION MIN_DECIMAL256_FOR_EACH_PRECISION[p]
holds the minimumi256
value that can be stored in aDecimal256
value of precisionp
.- MIN_
DECIMAL_ FOR_ EACH_ PRECISION Deprecated MIN_DECIMAL_FOR_EACH_PRECISION[p-1]
holds the minimumi128
value that can be stored in aDecimal128
value of precisionp
Functions§
- is_
validate_ decimal32_ precision - Returns true if the specified
i32
value can be properly interpreted as aDecimal32
number with precisionprecision
- is_
validate_ decimal64_ precision - Returns true if the specified
i64
value can be properly interpreted as aDecimal64
number with precisionprecision
- is_
validate_ decimal256_ precision - Return true if the specified
i256
value can be properly interpreted as aDecimal256
number with precisionprecision
- is_
validate_ decimal_ precision - Returns true if the specified
i128
value can be properly interpreted as aDecimal128
number with precisionprecision
- validate_
decimal32_ precision - Validates that the specified
i32
value can be properly interpreted as aDecimal32
number with precisionprecision
- validate_
decimal64_ precision - Validates that the specified
i64
value can be properly interpreted as aDecimal64
number with precisionprecision
- validate_
decimal256_ precision - Validates that the specified
i256
of value can be properly interpreted as aDecimal256
number with precisionprecision
- validate_
decimal_ precision - Validates that the specified
i128
value can be properly interpreted as aDecimal128
number with precisionprecision