polars_arrow::compute::cast

Function decimal_to_float

Source
pub fn decimal_to_float<T>(from: &PrimitiveArray<i128>) -> PrimitiveArray<T>
where T: NativeType + Float, f64: AsPrimitive<T>,
Available on crate feature compute_cast only.
Expand description

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