sycamore::web::js_sys::Math

Function trunc

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

The Math.trunc() function returns the integer part of a number by removing any fractional digits.

MDN documentation