Module decimal128

Source

Structsยง

Decimal128
128bit decimal, using the i128 to represent the decimal.

Constantsยง

BYTES_TO_OVERFLOW_RUST_DECIMAL ๐Ÿ”’
The maximum bytes length that an accurate RustDecimal can represent
DECIMAL128_DEFAULT_SCALE
The default scale for Decimal128 values
DECIMAL128_MAX_PRECISION
The maximum precision for Decimal128 values
DECIMAL128_MAX_SCALE
The maximum scale for Decimal128 values

Functionsยง

format_decimal_str ๐Ÿ”’
Port from arrow-rs, see https://github.com/Apache/arrow-rs/blob/master/arrow-array/src/types.rs#L1323-L1344
valid_precision_and_scale ๐Ÿ”’
check whether precision and scale is valid