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

# ROUND

#### Syntax <a href="#syntax.44" id="syntax.44"></a>

**ROUND**(*number;* *digits; direction*)

* *number* - the number which should be rounded - ***Value Type**: number*
* *digits* - the number of digits which should be rounded - ***Value type**: number (optional, default value: 0)*
* *direction* - defines if the number should be rounded to the nearest integer, up or downwards - ***Value type**: constant (optional, default value: nearest)*\
  \&#xNAN;*Possible values are:*
  * *<mark style="color:red;">nearest</mark>* - value is rounded to the nearest number defined by digits. Here numbers with fraction part “5” are rounded “away from zero”.
  * *<mark style="color:red;">up</mark>* - value is rounded up (away from zero)
  * *<mark style="color:red;">down</mark>* - value is rounded down (towards zero)

#### Remarks <a href="#remarks.34" id="remarks.34"></a>

* If digits is a negative value, the nearest number is left of the decimal point.
* The parameter *direction* can only be defined if parameter *digits* is defined as well.

#### Examples <a href="#examples.10" id="examples.10"></a>

<figure><img src="/files/j6toD4JuTUKeiajJdIpn" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/0jqYqGQQ5DUTEjMZ1dHE" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/bnM3jPQOB47mvT2nguvM" alt=""><figcaption></figcaption></figure>


---

# 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.nedyx.com/nedyx/clearlines-functions/mathematical-functions/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.
