> 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/version-1.66/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/LIq8TjgRG3AiFlMAXaYv" alt=""><figcaption></figcaption></figure>

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

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