# Sign

## Sign(x)

The sign of a number.

Returns

## Library

Math

## History

Introduced as a built-in function in Analytica 4.2 .

In Analytica 4.1 and earlier, it was common to define Sign as a user-defined function:

`Function Sign(x) := if x < 0 then -1 else if x > 0 then 1 else 0`

## See Also

Comments

Enable comment auto-refresher