abs
relationalai.semantics.std.math
abs(value: NumberValue) -> ExpressionCompute the absolute value.
Parameters
Section titled “Parameters”
(valueNumberValue) - The input value.
Returns
Section titled “Returns”Expression- AnExpressioncomputing the absolute value of the input. ReturnsNumberif the input isNumber, orFloatif the input isFloat.
Examples
Section titled “Examples”Compute absolute value:
>>> select(math.abs(Transaction.amount))>>> select(math.abs(Temperature.deviation + 1.0))