Absolute value | MATH_ABSOLUTE_VALUE

Syntax

MATH_ABSOLUTE_VALUE( [value] )

Parameters

value
A number. If the value is not a NUMBER, the FLOAT operation will be used to convert it.

Return Value

Returns a number.

Description

Get the absolute value of a value.

Examples

MATH_ABSOLUTE_VALUE(-16) # returns 16
MATH_ABSOLUTE_VALUE(null) # returns 0
MATH_ABSOLUTE_VALUE("-21") # returns 21