lang • sgn

Sgn

Sign = Sgn ( Number AS Float )

Returns the sign of a number.

Examples

Print Sgn(Pi)
1
Print Sgn(- Pi)
-1
Print Sgn(0)
0

See also