SGN
(Function)

Checks a sign.

SGN (<Expression>)

This statement checks the sign of <Expression> and returns the following numeric value.
If positive
|
1
|
If 0
|
0
|
If negative
|
-1
|

DEFSNG lf1, lf2
|
|
lf2 = SGN (lf1)
|
'Returns the sign of the real variable lf1.
|