sycamore::web::js_sys::Math

Function round

source
pub fn round(x: f64) -> f64
Expand description

The Math.round() function returns the value of a number rounded to the nearest integer.

MDN documentation