Difference between revisions of "Abs"

From WikiManual
Jump to: navigation, search
m
m (Removed double link)
 
(One intermediate revision by one other user not shown)
(No difference)

Latest revision as of 23:36, 24 December 2005

Operators:

Basic Commands:

add & sub
mult & div
rnd
*
mod
sgn
abs

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