| xHarbour Reference Documentation > Function Reference |
![]() |
![]() |
![]() |
Converts the sign of a number to a numeric value.
Sign( <nNumber> ) --> nSign
The function returns -1 for negative numbers, 0 for zero, and +1 for positive numbers.
| See also: | Abs() |
| Category: | CT:Math , Mathematical functions |
| Source: | ct\ctmath2.c |
| LIB: | xhb.lib |
| DLL: | xhbdll.dll |
http://www.xHarbour.com