# shz_floorf

Source: https://sh4zam.com/api/scalar/shz_floorf/

> Replacement for the <math.h> routine, floorf()

```c
SHZ_INLINE float shz_floorf(float x) SHZ_NOEXCEPT;
```

Replacement for the \<math.h> routine, floorf().

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `x` | `float` |  |

## Returns

`float`

## Details

Returns the closest integral value to `x`, rounded down, as a float.

## Warnings

- This routine is only valid for for the range INT32_MIN \<= `x` \<= INT32_MAX.

## Availability

- **C++ equivalent:** [`shz::floorf`](https://sh4zam.com/api/cpp/#shzfloorf)
- **Type-generic form:** none
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_scalar.h:80`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_scalar.h#L80)
- **Module:** [Scalar](https://sh4zam.com/api/scalar/), section "Rounding"
