math module · Scalar Function

math::abs

Get the absolute value of a number.

Syntax

RQL

Parameters

NameTypeDescription
valueNumberThe number to get the absolute value of

Return Value

Returns the absolute value of the input. Negative numbers become positive, positive numbers remain unchanged.

Examples

Convert to absolute value

$ Convert to absolute value
$ ctrl+enter to run

Filter by absolute magnitude

$ Filter by absolute magnitude
$ ctrl+enter to run

Related Functions