Xojo.Math.Sign
From Xojo Documentation
Method
Returns the sign of the number, -1 if the number is negative, 0 if it is zero and 1 if the number is positive.
Returns the sign of the number, -1 if the number is negative, 0 if it is zero and 1 if the number is positive.