pub fn floor(x: f64) -> f64 ⓘ
dep_web_sys
The Math.floor() function returns the largest integer less than or equal to a given number.
Math.floor()
MDN documentation