Skip to main content

to_int32

Function to_int32 

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

ToInt32.

The spec’s modulo-2^32 arithmetic: NaN and the infinities become zero, and the fractional part is dropped toward zero before the wrap.