SIGN

Synopsis
SIGN num
Description

Outputs the sign (-1 if negative, 0 if zero, 1 is positive) of its input. This is handy for when you want to apply the sign of one number to another.

Example
SHOW SIGN 5
1
SHOW SIGN 0
0
SHOW SIGN -98.6
-1

SourceForge.net Logo