# integer.max · Rell standard library · Chromia Docs (concept)

> pure function max(value: integer ): integer Returns the greater of this integer and another integer value; i.e. value if value is greater
than this integer

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

FUNCTION

# integer.max

```signature
pure function max(value: integer): integer
```

Returns the greater of this integer and another integer value; i.e. `value` if `value` is greater
than this integer, or this integer otherwise.

**Parameters**

* **value** — the value to compare against this integer

**Returns**

the greater of `value` and this integer.

Since 0.6.0

---

```signature
pure function max(value: big_integer): big_integer
```

Returns the greater of this integer and a `big_integer` value; i.e. `value` if `value` is greater
than this integer, or this integer otherwise.

**Parameters**

* **value** — the value to compare against this integer

**Returns**

the greater of `value` and this integer.

Since 0.12.0

---

```signature
pure function max(value: decimal): decimal
```

Returns the greater of this integer and a `decimal` value; i.e. `value` if `value` is greater than
this integer, or this integer otherwise.

**Parameters**

* **value** — the value to compare against this integer

**Returns**

the greater of `value` and this integer.

Since 0.6.0

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