Function |to_i32
conv/f64::|to_i32
Usage
|to_i32(value, pos_infinity, neg_infinity, nan)
Parameters
↳ value:
f64
↳ pos_infinity:
i32
↳ neg_infinity:
i32
↳ nan:
i32
Return
↴ i32
Turns f64
into i32
.
f64
is truncated to fit into i32
, and in case floating-point value does
not describe a real number:
pos_infinity
is used whenf64
is a positive infinity,neg_infinity
is used whenf64
is a negative infinity,nan
is used whenf64
is not a number.