> For the complete documentation index, see [llms.txt](https://v5docs.keyfax.biz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://v5docs.keyfax.biz/reference/expression-reference/numeric-expressions/trunc.md).

# Trunc

Cuts the databox value down to a whole number, or to a given number of decimal places, without rounding up.

| Expression | Databox value | Result  |
| ---------- | ------------- | ------- |
| `Trunc`    | `12.99`       | `12`    |
| `Trunc(2)` | `12.999`      | `12.99` |

The argument is how many decimal places to keep, and none means a whole number.

Use this where rounding up would overstate something — a number of complete days, or a quantity that has to be met in full.

See also [Int](/reference/expression-reference/numeric-expressions/int.md) and [Round](/reference/expression-reference/numeric-expressions/round.md), which do round.
