Skip to content

abs

relationalai.semantics.std.math
abs(value: NumberValue) -> Expression

Compute the absolute value.

  • Expression - An Expression computing the absolute value of the input. Returns Number if the input is Number, or Float if the input is Float.

Compute absolute value:

>>> select(math.abs(Transaction.amount))
>>> select(math.abs(Temperature.deviation + 1.0))