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

> pure function to_ integer(): integer Convert this decimal to an integer, truncating the fractional part. Numerically equivalent to decimal.floor() , but wi

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

FUNCTION

# decimal.to\_integer

```signature
pure function to_integer(): integer
```

Convert this decimal to an integer, truncating the fractional part.

Numerically equivalent to `decimal.floor()`, but with a type conversion.

**Throws**

* `exception` — if this decimal is greater than `integer.MAX_VALUE` or less than `integer.MIN_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/to_integer.html)Generated API reference, mirrored from the live docs
