Difference between revisions of "Sgn"

From WikiManual
Jump to: navigation, search
 
m
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.  I do not remember what 0 returns.
 
Returns the sign of the value on the stack.  1 if positive, -1 if negative.  I do not remember what 0 returns.

Revision as of 21:47, 23 December 2005

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.