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§
- The maximum precision for DataType::Decimal128 values
- The maximum scale for DataType::Decimal128 values
- The maximum precision for DataType::Decimal256 values
- The maximum scale for DataType::Decimal256 values
- The default scale for DataType::Decimal128 and DataType::Decimal256 values
MAX_DECIMAL_FOR_EACH_PRECISION[p-1]holds the maximumi128value that can be stored in arrow_schema::DataType::Decimal128 value of precisionpMIN_DECIMAL_FOR_EACH_PRECISION[p-1]holds the minimumi128value that can be stored in a arrow_schema::DataType::Decimal128 value of precisionp
Functions§
- Determines whether the specified
i256value can be properly interpreted as a Decimal256 number with precisionprecision - Determines whether the specified
i128value can be properly interpreted as a Decimal number with precisionprecision - Validates that the specified
i256of value can be properly interpreted as a Decimal256 number with precisionprecision - Validates that the specified
i128value can be properly interpreted as a Decimal number with precisionprecision