Difference between revisions of "Abs"
From WikiManual
Line 1: | Line 1: | ||
− | Absolute Value ''UNARY'' | + | Absolute Value '''UNARY''' |
Returns the absolute value of the top value on the stack. Absolute value is defined as: | Returns the absolute value of the top value on the stack. Absolute value is defined as: |
Revision as of 17:06, 3 October 2005
Absolute Value UNARY
Returns the absolute value of the top value on the stack. Absolute value is defined as:
x abs
is
x if x >= 0 -x if x < 0