# abs · Rell standard library · Chromia Docs (concept)

> pure function abs(a: integer ): integer Returns the absolute value of a integer value; i.e. the value itself if it's positive or its negation if
it's negat

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/abs/

FUNCTION

# abs

```signature
pure function abs(a: integer): integer
```

Returns the absolute value of a integer value; i.e. the value itself if it's positive or its negation if
it's negative.

**Parameters**

* **a** — the integer for which to determine an absolute value

**Returns**

the absolute value of the argument

Since 0.6.0

---

```signature
pure function abs(a: big_integer): big_integer
```

Returns the absolute value of a big\_integer value; i.e. the value itself if it's positive or its negation if
it's negative.

**Parameters**

* **a** — the big\_integer for which to determine an absolute value

**Returns**

the absolute value of the argument

Since 0.12.0

---

```signature
pure function abs(a: decimal): decimal
```

Returns the absolute value of a decimal value; i.e. the value itself if it's positive or its negation if
it's negative.

**Parameters**

* **a** — the decimal for which to determine an absolute value

**Returns**

the absolute value of the argument

Since 0.9.1

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/%5Broot%5D/abs.html)Generated API reference, mirrored from the live docs
