pub fn to_int32(value: f64) -> i32
ToInt32.
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.
NaN