Math.Abs

Returns the absolute value of a number.

Accepts the following parameters:

Parameter NameTypeDefault ValueNotes
valueSeries<Number>--

Returns: Series<Number>

Math.Abs is a built-in function - you can use it directly. Below is an example implementation:

1 function Math.Abs(value): value if value >= 0 else -value