Skip to main content

single_float_to_decimal

Function single_float_to_decimal 

pub fn single_float_to_decimal<D>(
    input: f64,
    mul: f64,
) -> Option<<D as ArrowPrimitiveType>::Native>
👎Deprecated since 60.0.0:

Use float_to_decimal instead

Expand description

Cast a single floating point value to a decimal native with the given multiple. Returns None if the scaled and rounded value does not fit the native integer type. The caller must separately validate the decimal precision.