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

> pure function min(a: integer , b: integer ): integer Returns the lesser of two integer values; i.e. a if a < b , or b otherwise. Parameters a — the first i

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

FUNCTION

# min

```signature
pure function min(a: integer, b: integer): integer
```

Returns the lesser of two integer values; i.e. `a` if `a < b`, or `b` otherwise.

**Parameters**

* **a** — the first integer to compare
* **b** — the second integer to compare

**Returns**

the lesser of `a` and `b`

Since 0.6.0

---

```signature
pure function min(a: big_integer, b: big_integer): big_integer
```

Returns the lesser of two big\_integer values; i.e. `a` if `a < b`, or `b` otherwise.

**Parameters**

* **a** — the first big\_integer to compare
* **b** — the second big\_integer to compare

**Returns**

the lesser of `a` and `b`

Since 0.12.0

---

```signature
pure function min(a: decimal, b: decimal): decimal
```

Returns the lesser of two decimal values; i.e. `a` if `a < b`, or `b` otherwise.

**Parameters**

* **a** — the first decimal to compare
* **b** — the second decimal to compare

**Returns**

the lesser of `a` and `b`

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/min.html)Generated API reference, mirrored from the live docs
