# shz_normalizef_fsrra

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

> Maps a value within the given range from to to, to be within the range of 0.0f + 1.0f more quickly, provided to - from is a positive difference

```c
SHZ_INLINE float shz_normalizef_fsrra(float current, float from, float to) SHZ_NOEXCEPT;
```

Maps a value within the given range `from` to `to`, to be within the range of `0.0f + 1.0f` more quickly, provided `to` - `from` is a positive difference.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `current` | `float` |  |
| `from` | `float` |  |
| `to` | `float` |  |

## Returns

`float`

## Naming and requirements

- `_fsrra`: Uses `FSRRA` (fast approximate 1/sqrt(x)). The argument or denominator must be positive. Faster, less precise. ([Naming and Suffixes](https://sh4zam.com/concepts/naming-and-suffixes/))

## Availability

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