sign
relationalai.semantics.std.math
sign(x: NumberValue) -> ExpressionCompute the sign of a number.
Parameters
Section titled “Parameters”
(xNumberValue) - The input value.
Returns
Section titled “Returns”Expression- AnExpressioncomputing -1 for negative, 0 for zero, 1 for positive. ReturnsInteger.
Examples
Section titled “Examples”Get sign of values:
>>> select(math.sign(Account.balance))>>> select(math.sign(Temperature.deviation))