abs(val: numeric or duration) -> val

Returns the absolute value of 'val'.

Domain

This is a scalar function (calculates a single output value for a single input row).

Categories

Examples

make_col all_positive:abs(@.mixed)

Create a column 'all_positive' with the absolute values of column 'mixed'