series_abs()
Learn how to use the series_abs() function to calculate the element-wise absolute value of the numeric series input.
Calculates the element-wise absolute value of the numeric series input.
Syntax
series_abs(series)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| series | dynamic | ✔️ | An array of numeric values over which the absolute value function is applied. |
Returns
Dynamic array of calculated absolute value. Any non-numeric element yields a null element value.
Example
print arr = dynamic([-6.5,0,8.2])
| extend arr_abs = series_abs(arr)
Output
| arr | arr_abs |
|---|---|
| [-6.5,0,8.2] | [6.5,0,8.2] |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.