Open vrongmeal opened 1 year ago
We want to use a 256 bit integer to store the decimal. Need to use https://docs.rs/ethnum/latest/ethnum/struct.I256.html
Implement the required num_traits for i256 and the rest should be as easy as creating:
num_traits
i256
impl DecimalType for DecimalType256 { type MantissaType = i256; const MAX_SCALE: u8 = 76; } /// Compatible with arrow's `Decimal256`. pub type Decimal256 = Decimal<DecimalType256>;
This way we'll be able to support 256 bit numerics (not highly urgent but good to have).
Do we have this?
Summary
We want to use a 256 bit integer to store the decimal. Need to use https://docs.rs/ethnum/latest/ethnum/struct.I256.html
Specifications
Implement the required
num_traits
fori256
and the rest should be as easy as creating:Rationale
This way we'll be able to support 256 bit numerics (not highly urgent but good to have).
Impact
Tasks