pyarrow.decimal256#

pyarrow.decimal256(int precision, int scale=0) DataType#

Create decimal type with precision and scale and 256-bit width.

Arrow decimals are fixed-point decimal numbers encoded as a scaled integer. The precision is the number of significant digits that the decimal type can represent; the scale is the number of digits after the decimal point (note the scale can be negative).

For most use cases, the maximum precision offered by decimal128 is sufficient, and it will result in a more compact and more efficient encoding. decimal256 is useful if you need a precision higher than 38 significant digits.

Parameters:
precisionint

Must be between 1 and 76

scaleint
Returns:
decimal_typeDecimal256Type