abs

Description

Returns the absolute value of ‘val’.

Return type

val

Domain

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

Categories

Usage

abs(val)

Argument

Type

Optional

Repeatable

Restrictions

val

numeric or duration

no

no

none

Examples

make_col all_positive:abs(@.mixed)

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