In this topic, we described about the Sign Condition with detailed example.
The sign condition determines the numeric operand value is positive or negative. The sign condition also determines whether the algebraic value of a numeric operand is greater than or less than or equal to zero. The sign condition test results depends on the setting of the NUMPROC compiler option.
Should be defined as a numeric identifier or as an arithmetic expression that contains at least one variable. operand-1 can be defined as a floating-point identifier.
The operand is -
- POSITIVE if its value is greater than zero
- NEGATIVE if its value is less than zero
- ZERO if its value is equal to zero
An unsigned operand is either POSITIVE or ZERO.
Algebraic test is executed for the truth value of the sign condition. NOT tests the condition for not equal values.