pub fn round(x: f64) -> f64 ⓘ
dep_web_sys
The Math.round() function returns the value of a number rounded to the nearest integer.
Math.round()
MDN documentation