pub fn to_i32(v: f64, mode: Rounding) -> Outcome<i32>Expand description
Convert a float to a 32-bit integer under mode.
An out-of-range or NaN input raises Invalid. The value returned in that
case is i32::MAX, which is the conventional MIPS result — and a choice
here, since the architecture leaves it undefined when the exception is
masked.