Module arrow_data::decimal
source · 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]holds the maximumi128value that can be stored in arrow_schema::DataType::Decimal128 value of precisionpMIN_DECIMAL_FOR_EACH_PRECISION[p]holds the minimumi128value that can be stored in a arrow_schema::DataType::Decimal128 value of precisionp
Functions§
- 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