# Function f64_nearest

Source

    pub fn f64_nearest(a: f64) -> f64

🔬This is a nightly-only experimental API. (`wasm_numeric_instr` #133908)
Available on `target_family="wasm"` only.
Expand description

Generates the `f64.nearest` instruction, roundinging to the nearest integer. Rounds half-way cases to the number with an even least significant digit.

This method is useful when targeting `no_std` and is equivalent to `std::f64::round_ties_even()`.