Sgn

From WikiManual
Revision as of 22:49, 23 December 2005 by Ollj (talk | contribs)
Jump to: navigation, search

Operators:

Basic Commands:

add & sub
mult & div
rnd
*
mod
sgn
abs

Operators:

Basic Commands:

add & sub
mult & div
rnd
*
mod
sgn
abs

Sign Operator UNARY

Returns the sign of the value on the stack. 1 if positive, -1 if negative. I do not remember what 0 returns.