Skip to main content

SIGN

Returns the sign of a number: 1 for positive, -1 for negative, 0 for zero.

CategoryMath
SyntaxSIGN(number)

Parameters

ParameterRequiredDescription
numberRequiredAny real number.

Example

SIGN(-5)         // → -1
SIGN(3) // → 1
SIGN(0) // → 0

Auto-generated from the EngCanvas function registry.