polars_core::export::cast

Function decimal_to_decimal

Source
pub fn decimal_to_decimal(
    from: &PrimitiveArray<i128>,
    to_precision: usize,
    to_scale: usize,
) -> PrimitiveArray<i128>
Expand description

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