Skip to content

sign

relationalai.semantics.std.math
sign(x: NumberValue) -> Expression

Compute the sign of a number.

  • Expression - An Expression computing -1 for negative, 0 for zero, 1 for positive. Returns Integer.

Get sign of values:

>>> select(math.sign(Account.balance))
>>> select(math.sign(Temperature.deviation))