# shz_signf

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

> Returns -1.0f if x < 0, 0.0f if x == 0, or 1.0f if x > 0

```c
SHZ_INLINE float shz_signf(float x) SHZ_NOEXCEPT;
```

Returns -1.0f if `x` \< 0, 0.0f if `x` == 0, or 1.0f if `x` > 0.

## Parameters

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

## Returns

`float`

## Availability

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