pub fn single_float_to_decimal<D>(input: f64, mul: f64) -> Option<D::Native>where
D: DecimalType + ArrowPrimitiveType,
<D as ArrowPrimitiveType>::Native: DecimalCast,👎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.