Difference between revisions of "Sgn"
From WikiManual
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | ===[[Operators]]:=== | ||
+ | {{Basic Commands}} | ||
+ | |||
Sign Operator '''UNARY''' | Sign Operator '''UNARY''' | ||
− | Returns the sign of the value on the stack. 1 if positive, -1 if negative. | + | Returns the sign of the value on the stack. 1 if positive, -1 if negative. 0 seems to return 0. |
Latest revision as of 15:38, 18 October 2006
Operators:
Basic Commands: |
Sign Operator UNARY
Returns the sign of the value on the stack. 1 if positive, -1 if negative. 0 seems to return 0.