# shz_ceilf

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

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

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

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

## Parameters

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

## Returns

`float`

## Details

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

## Warnings

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

## Availability

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