> For the complete documentation index, see [llms.txt](https://docs.atfinity.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.atfinity.io/rule-language/operators/mathematical-operators/round.md).

# ROUND

### Description

`ROUND(number[, precision])` returns the value of the given parameter, rounded to the closest whole number or to the given precision\
\
Note that Atfinity uses **bankers rounding** also called **round half to even**, so e.g. 2.5 is rounded to 2, but 3.5 is rounded to 4 (see this [wikipedia article](https://en.wikipedia.org/wiki/Rounding#Rounding_half_to_even) about the topic)

### Example

```
p is Person
ROUND(p.total_fee)
```

This expression returns the total fee that applies to a person, rounded to the whole number. The value for `p.total_fee` could come from another [information field](/guides/glossary/information.md), where an expression with `SUM` is used to calculate the total fee.

### Example with precision

```
p is Person
ROUND(p.total_fee, 2)
```

This expression returns the total fee that applies to a person, rounded to two decimal places. This could, for example, be `290.90`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.atfinity.io/rule-language/operators/mathematical-operators/round.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
