Skip to main content

## f32_floor

# Function f32_floor

Source

    pub fn f32_floor(a: f32) -> f32

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

Generates the `f32.floor` instruction, returning the largest integer less than or equal to `a`.

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