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

> pure static function from_ text(value: text ): decimal Parse a signed base-10 text representation of a real number. If the encoded value has more decimal p

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

FUNCTION

# decimal.from\_text

```signature
pure static function from_text(value: text): decimal
```

Parse a signed base-10 text representation of a real number.

If the encoded value has more decimal places than are supported, it is rounded to the nearest
supported value.

**Parameters**

* **value** — the text to parse

**Throws**

* `exception` — when - the text representation is ill-formed - the magnitude of the encoded value is larger than `decimal.MAX_VALUE`

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