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

> pure function to_ text(): text Convert this integer to a base-10 text representation. Since 0.9.0 pure function to_ text(radix: integer ): text Convert thi

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

FUNCTION

# integer.to\_text

```signature
pure function to_text(): text
```

Convert this integer to a base-10 text representation.

Since 0.9.0

---

```signature
pure function to_text(radix: integer): text
```

Convert this integer to a text representation with the specified radix.

Does not include a base prefix in the output, i.e. `integer(25).to_text(16)` returns `19` rather
than `0x19`.

Supported radixes are from 2 to 36 (inclusive).

**Parameters**

* **radix** — The radix (base) to use for the text representation.

**Throws**

* `exception` — if the radix is outside the supported range

Since 0.9.0

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