Sfairadora

  • Reference Guide

sgn

sgn(x)
Determines whether the parameter is positive, negative, or zero. The function returns 1 for the positive numbers, 0 for 0, and –1 for the negative numbers. The parameter if one of the numeric types: Int, Int8, Int16, Int64, Byte, Word, Dword, Qword, or Real. The return value is of the type Int.

See Also

abs