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

> pure function hex(): text Deprecated (for removal): Use 'to_hex' instead Convert this integer to hexadecimal text. Does not include a base prefix in the ou

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

FUNCTION

# integer.hex

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

**Deprecated** (for removal): Use 'to\_hex' instead

Convert this integer to hexadecimal text.

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

Since 0.6.0

**Alias of** [integer.to\_hex](https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/integer/to_hex/)

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