# abs {#abs}

**Parent topic:**[Functions](../../Functions/category.md)

## Syntax {#topic_wq1_xtd_zcc}

`abs(X)`

## Arguments {#topic_rl1_ztd_zcc}

**X** is a scalar/pair/vector/matrix/dictionary/table.

## Details {#topic_dlz_ytd_zcc}

Return the element-by-element absolute value\(s\) of *X*.

## Examples {#topic_n3x_ytd_zcc}

``` {#codeblock_wqn_15d_zcc}
abs(-2.0);
// output: 2

abs(-2 -3 4);
// output: [2, 3, 4]
```

