Difference between revisions of "Abs"
From WikiManual
m |
m |
||
| Line 1: | Line 1: | ||
| + | ===[[Operators]]:=== | ||
| + | {{Basic Commands}} | ||
| + | |||
===[[Operators]]:=== | ===[[Operators]]:=== | ||
{{Basic Commands}} | {{Basic Commands}} | ||
Revision as of 21:49, 23 December 2005
Operators:
Basic Commands: |
Operators:
Basic Commands: |
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