Function js_sys::Math::fround

source ยท
pub fn fround(x: f64) -> f32
Expand description

The Math.fround() function returns the nearest 32-bit single precision float representation of a Number.

MDN documentation