abs

Description

Returns the absolute value of ‘val’.

Return type

numeric or duration

Domain

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

Categories

Usage

abs( val )

Argument

Type

Required

Multiple

Constant

val

numeric or duration

Required

Only one

Variable

Examples

make_col all_positive:abs(@.mixed)

Create a column ‘all_positive’ with the absolute values of column ‘mixed’