pub fn convert_to_i32(f: f32) -> i32Expand description
You are given a 32-bit float (single precision). Return the number a signed 32-bit integer would hold with the same bit pattern.
ยงExample
10.0 (f32) == 01000001001000000000000000000000 (binary)
returns 1092616192 (i32)