Investment Studio > Expressions > Functions > Math & Trig > SIGN
integer sign(float argument)
Returns the sign of the argument: 1 if argument > 0, 0 if argument = 0, -1 if argument < 0.
Examples
=sign(42)
equals 1
=sign(-42)
equals -1
=sign(42 - 42)
equals 0.
See also abs.