# shz_remapf

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

> Maps a value within the given range inputStart to inputEnd, to be within the range of outputStart to outputEnd

```c
SHZ_INLINE float shz_remapf(float value, float inputStart, float inputEnd, float outputStart, float outputEnd) SHZ_NOEXCEPT;
```

Maps a value within the given range `inputStart` to `inputEnd`, to be within the range of `outputStart` to `outputEnd`.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `value` | `float` |  |
| `inputStart` | `float` |  |
| `inputEnd` | `float` |  |
| `outputStart` | `float` |  |
| `outputEnd` | `float` |  |

## Returns

`float`

## Availability

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