pub fn f64_to_i32(v: f64) -> Result<i32, RError>
f64 → i32 — truncation toward zero, then check range.
f64 → i32