Skip to main content

checked_f64_to_i32

Function checked_f64_to_i32 

Source
fn checked_f64_to_i32(v: f64) -> Option<i32>
Expand description

Converts an f64 to i32, returning None for non-finite or out-of-range values instead of silently saturating.