Calculate sign of the specified value: means +1 if value is greater than 0, -1 if value is less than 0 or 0 if value is zero.
Syntax |
sign(int value): int sign(real value): int |
---|---|
value |
Source value |
Result |
Return the calculated value |