polars_core::export::cast

Function decimal_to_integer

pub fn decimal_to_integer<T>(from: &PrimitiveArray<i128>) -> PrimitiveArray<T>
where T: NativeType + NumCast,
Expand description

Returns a [PrimitiveArray<i128>] with the casted values. Values are None on overflow