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