Name
Sgn -- return the sign of a value (V2.0)
Synopsis
sign = Sgn(x)
Function
Returns the sign of
x
. If
x
is less than 0, -1 is returned. If
x
is greater than 0, 1 is returned. If
x
is equal to 0, 0 is returned.
Inputs
x
value to examine
Results
sign
sign of
x
Show TOC