ABS and ABSVAL are both supported, perform the same function, and can be used interchangeably. They returns the absolute value of a number in the same data type as numValue.

Syntax

ABS(numValue)

ABSVAL(numValue)

Arguments

numValue: Any of the supported numeric data types.

Examples

ABS(-4)
-- Returns 4

VALUES ABS(0.75)
-- Returns 0.75