NAME
-
sgn - signum function
SYNOPSIS
-
double sgn(x)
double x;
DESCRIPTION
-
Sgn returns the signum of x. When x is less than, equal to
and greater than zero, sgn returns -1, zero and one, respectively.
This function implements the BASIC SGN function.
SEE ALSO
-
sgn(func)
from
The Basmark QuickBASIC Programmer’s Manual
by
Lawrence Leinweber