Skip to main content

f64_to_i32_saturating_round

Function f64_to_i32_saturating_round 

Source
pub fn f64_to_i32_saturating_round(value: f64) -> i32
Expand description

Rounds an f64 to the nearest integer and saturates it to i32.