# 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="https://1085786630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWv5M2BoEVu0kDIV5EPs4%2Fuploads%2Fgit-blob-3eaddeafea5d481eae9f8546bfeb6d7d98dd2830%2Fgrafik.png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1085786630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWv5M2BoEVu0kDIV5EPs4%2Fuploads%2Fgit-blob-690e5a26e5038716f619f7ea49262bd692e5bed2%2Fgrafik.png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1085786630-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FWv5M2BoEVu0kDIV5EPs4%2Fuploads%2Fgit-blob-d5482d9e4e45b6db105932a946d3944560e637d4%2Fgrafik.png?alt=media" alt=""><figcaption></figcaption></figure>
