SIGN num

num

Outputs the sign (-1 if negative, 0 if zero, 1 is positive) of its input. This is handy for when you want to apply the sign of one number to another.

SHOW SIGN 5 1

SHOW SIGN 5

SHOW SIGN 0 0

SHOW SIGN 0

SHOW SIGN -98.6 -1

SHOW SIGN -98.6