Arrow.Type.Decimal (Arrow v0.1.0)

Copy Markdown

Fixed-point decimal column. Stored as a little-endian two's-complement integer of bit_width bits, scaled by 10^-scale.

All four spec widths — 32, 64, 128, and 256 bits — are supported.

Summary

Types

bit_width()

@type bit_width() :: 32 | 64 | 128 | 256

t()

@type t() :: %Arrow.Type.Decimal{
  bit_width: bit_width(),
  precision: pos_integer(),
  scale: integer()
}