# shz_cequalf

Source: https://sh4zam.com/api/complex/shz_cequalf/

```c
SHZ_INLINE bool shz_cequalf(shz_complex_t lhs, shz_complex_t rhs) SHZ_NOEXCEPT;
```

Checks for equality between two complex numbers with either an absolute or relative tolerance.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `lhs` | `shz_complex_t` |  |
| `rhs` | `shz_complex_t` |  |

## Returns

`bool`

## Availability

- **C++ equivalent:** [`shz::cequalf`](https://sh4zam.com/api/cpp/#shzcequalf), [`shz::operator==`](https://sh4zam.com/api/cpp/#shzoperator==)
- **Type-generic form:** none
- **Back-ends:** SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- **Defined in:** [`sh4zam/shz_complex.h:67`](https://github.com/gyrovorbis/sh4zam/blob/ba1e30c88d49df0311870b229e1dd860ef26c477/include/sh4zam/shz_complex.h#L67)
- **Module:** [Complex](https://sh4zam.com/api/complex/), section "Basic"
