
15-10
SGN (Function)
Function
Checks a sign.
Format
SGN (<Expression>)
Explanation
This statement checks the sign of <Expression> and returns the following
numeric value.
If positive 1
If 0 0
If negative -1
Example
DEFSNG lf1, lf2
lf2 = SGN (lf1) 'Returns the sign of the real variable lf1.
Comentários a estes Manuais