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