Function dactyl::int_div_float
source · [−]pub fn int_div_float<T>(e: T, d: T) -> Option<f64> where
T: AsPrimitive<f64>, Expand description
Integer to Float Division.
This uses num_traits::cast to convert primitives to f64 as accurately
as possible, then performs the division. For very large numbers, some
rounding may occur.
If the result is invalid, NaN, or infinite, None is returned.