pyarrow.decimal256#

pyarrow.decimal256(intprecision,intscale=0)DataType#

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

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

For most use cases, the maximum precision offered bydecimal128is sufficient, and it will result in a more compact and more efficientencoding.decimal256 is useful if you need a precision higherthan 38 significant digits.

Parameters:
precisionint

Must be between 1 and 76

scaleint
Returns:
decimal_typeDecimal256Type