Function arrow2::compute::cast::float_to_decimal
source · pub fn float_to_decimal<T>(
from: &PrimitiveArray<T>,
to_precision: usize,
to_scale: usize
) -> PrimitiveArray<i128>where
T: NativeType + Float + ToPrimitive,
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