sign( <variable>, <number> )

Description

This sets the variable specified to the sign of the given number.

If the number is negative, the result is -1. If the number is zero, the result is 0. If the number is positive, the result is +1.