# shz_wrapf

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

> Wraps the given value back to be within the range of min to max

```c
SHZ_INLINE float shz_wrapf(float value, float min, float max) SHZ_NOEXCEPT;
```

Wraps the given `value` back to be within the range of `min` to `max`.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `value` | `float` |  |
| `min` | `float` |  |
| `max` | `float` |  |

## Returns

`float`

## Availability

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