From the NannyMUD documentation
2000-12-19
NAME sgn - The sign of a number. SYNTAX int sgn(int arg) DESCRIPTION This simulated efun returns -1 if the argument is less than zero, zero if the argument is zero and 1 else.
sgn - The sign of a number.
int sgn(int arg)
This simulated efun returns -1 if the argument is less than zero, zero if the argument is zero and 1 else.