# math/sign
Return -1, 0, or 1 based on the sign of a number.
## Syntax
[math/sign $x]
## Parameters
- `$x` — Any number
## Examples
[math/sign -5] # -1 [math/sign 0] # 0 [math/sign 3.2] # 1
## Returns
Number — `-1` if negative, `0` if zero, `1` if positive.
## See Also
`abs`, `math/trunc`, `int`