# shz_fdimf

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

> Replacement for the <math.h> routine, fdimf(),

```c
SHZ_INLINE float shz_fdimf(float x, float y) SHZ_NOEXCEPT;
```

Replacement for the \<math.h> routine, fdimf(),.

## Parameters

| Name | Type | Description |
| --- | --- | --- |
| `x` | `float` |  |
| `y` | `float` |  |

## Returns

`float`

## Details

Returns the positive difference between `x` and `y` or zero if y >= x.

## Warnings

- Unlike fdimf(), this routine does not handle INF and NAN values.

## Availability

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