Expand description
Defines maximum and minimum values for decimal256
and decimal128
types for varying precisions.
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_
DECIMAL_ FOR_ EACH_ PRECISION MAX_DECIMAL_FOR_EACH_PRECISION[p-1]
holds the maximumi128
value that can be stored in arrow_schema::DataType::Decimal128 value of precisionp
- MIN_
DECIMAL_ FOR_ EACH_ PRECISION MIN_DECIMAL_FOR_EACH_PRECISION[p-1]
holds the minimumi128
value that can be stored in a arrow_schema::DataType::Decimal128 value of precisionp
Functions§
- is_
validate_ decimal256_ precision - Determines whether the specified
i256
value can be properly interpreted as a Decimal256 number with precisionprecision
- is_
validate_ decimal_ precision - Determines whether the specified
i128
value can be properly interpreted as a Decimal number with precisionprecision
- validate_
decimal256_ precision - Validates that the specified
i256
of value can be properly interpreted as a Decimal256 number with precisionprecision
- validate_
decimal_ precision - Validates that the specified
i128
value can be properly interpreted as a Decimal number with precisionprecision