Answers for "floor float rust"

0

floor float rust

let f = 3.7_f64;
let g = 3.0_f64;
let h = -3.7_f64;

assert_eq!(f.floor(), 3.0);
assert_eq!(g.floor(), 3.0);
assert_eq!(h.floor(), -4.0);
Posted by: Guest on April-10-2022

Browse Popular Code Answers by Language