abs

Description

Returns the absolute value of ‘val’.

Return type

numeric

Domain

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

Categories

Usage

abs( val )

Argument

Type

Required

Multiple

val

numeric

Required

Only one

Examples

make_col all_positive:abs(@.mixed)

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