Function floor
#[must_use = "method returns a new number and does not mutate the original value"]
pub const fn floor(x: f64) -> f64
Experimental version of floor in core. See f64::floor for details.
Examples
use f64;
let f = 3.7_f64;
let g = 3.0_f64;
let h = -3.7_f64;
assert_eq!;
assert_eq!;
assert_eq!;
This standalone function is for testing only. It will be stabilized as an inherent method.