Type Definition arrow_array::decimal::Decimal256
source · [−]pub type Decimal256 = Decimal<Decimal256Type>;Expand description
Represents a decimal value with precision and scale. The decimal value could be represented by a signed 256-bit integer.
Implementations
sourceimpl Decimal256
impl Decimal256
sourcepub fn from_big_int(
num: &BigInt,
precision: u8,
scale: u8
) -> Result<Decimal256, ArrowError>
pub fn from_big_int(
num: &BigInt,
precision: u8,
scale: u8
) -> Result<Decimal256, ArrowError>
Constructs a Decimal256 value from a BigInt.
sourcepub fn to_big_int(self) -> BigInt
pub fn to_big_int(self) -> BigInt
Constructs a BigInt from this Decimal256 value.