f32_ceil in core::arch::wasm32 - Rust
Description: Generates the `f32.ceil` instruction, returning the smallest integer greater than or equal to `a`.

Skip to main content

## f32_ceil

# Function f32_ceil

Source

    pub fn f32_ceil(a: f32) -> f32

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

Generates the `f32.ceil` instruction, returning the smallest integer greater than or equal to `a`.

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