polars_core::export::cast

Function integer_to_decimal

pub fn integer_to_decimal<T>(
    from: &PrimitiveArray<T>,
    to_precision: usize,
    to_scale: usize,
) -> PrimitiveArray<i128>
where T: NativeType + AsPrimitive<i128>,
Expand description

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