sign

The sign Statement

The sign statement lets you take the sign value (-1, 0, or 1) of an input value and store the result in the first argument. The first argument must be a variable but the second argument can be a variable, a numeric constant, or a constant expression. The syntax of the sign statement is shown below.

 sign x, y // set x equal to -1, 0, or 1

Generated by  doxygen 1.6.2