Function single_decimal_to_float_lossy
pub fn single_decimal_to_float_lossy<D, F>(
f: &F,
x: <D as ArrowPrimitiveType>::Native,
scale: i32,
) -> f64Expand description
Lossy conversion from decimal to float.
Returns the f64 nearest to the decimal’s exact value, rounding once, for any
scale that fits in an i8 – as every Arrow decimal’s does.
Conversion is lossy and follows standard floating point semantics. Values
that exceed the representable range become INFINITY or -INFINITY without
returning an error.