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

> pure function floor(): decimal Round this decimal towards zero, to the next whole number. Examples: (-0.4).floor() returns 0 (-1.6).floor() returns -1 (1.9

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

FUNCTION

# decimal.floor

```signature
pure function floor(): decimal
```

Round this decimal towards zero, to the next whole number.

Examples:

* `(-0.4).floor()` returns `0`
* `(-1.6).floor()` returns `-1`
* `(1.99999999999999999999).floor()` returns `1`

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