polars_core::export::cast

Function decimal_to_float

pub fn decimal_to_float<T>(from: &PrimitiveArray<i128>) -> PrimitiveArray<T>
where T: NativeType + Float, f64: AsPrimitive<T>,
Expand description

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