devela::_dep::web_sys::js_sys::Math

Function floor

Source
pub fn floor(x: f64) -> f64 
Available on crate feature dep_web_sys only.
Expand description

The Math.floor() function returns the largest integer less than or equal to a given number.

MDN documentation