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

> pure function to_ text(): text Convert this decimal to a base 10 text representation. Since 0.9.1 pure function to_ text(scientific: boolean ): text Conver

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

FUNCTION

# decimal.to\_text

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

Convert this decimal to a base 10 text representation.

Since 0.9.1

---

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

Convert this decimal to a base 10 text representation, optionally using scientific notation (also
called standard form), e.g. `6.0221E+23`.

The general output format when scientific notation is used is `mEsn`, where `m` represents a
non-zero coefficient, `E` is the literal character, `s` represents the sign (either `+` or `-`),
and `n` represents the exponent.

Note that the maximum number of decimal places for the coefficient is `20`, and therefore any
precision beyond this in the original `decimal` value is lost.

**Parameters**

* **scientific** — If `true`, the output will use scientific notation. If `false`, decimal representation will be used.

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