Inversion -

Operator: -

The inversion operator - is applied to a value in order to negate the value. The value can be of the following type:

  • number

  • duration

This function is SQL compatible. For more information about SQL compatibility, see our documentation.

Returns the inversed (reversed) value of value. When the values before and after the inversion are combined in an addition, the result should be zero.


-5 + 5 => 0

-(5+5) => -10

-('12d') => 0 seconds (duration on itself cannot be negative)

Today() + (-'12d') => 12 days before today

Last updated