Skip to main content
Sumo Logic

abs

The absolute function calculates the absolute value of x.

Syntax

  • abs(x)

Rules

  • The function cannot be nested.

Example

abs(-1.5) as v // v = 1.5