# shz_equalf

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

> Checks for equality based on EITHER the absolute tolerance or relative tolerance, using SHZ_FLT_EPSILON

```c
SHZ_INLINE bool shz_equalf(float a, float b) SHZ_NOEXCEPT;
```

Checks for equality based on EITHER the absolute tolerance or relative tolerance, using [`SHZ_FLT_EPSILON`](https://sh4zam.com/api/scalar/SHZ_FLT_EPSILON/).

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `a` | `float` |  |
| `b` | `float` |  |

## Returns

`bool`

## Availability

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