Sign

Returns the sign of a number.

Sign(5) → 1
Sign(-5) → -1

Inputs

Sign(number)

  • number - A number expression

Outputs

Outputs -1 if number is negative, 0 if number is zero, or 1 if number is positive.