# ROUND

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

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

* *number* - die Zahl, die gerundet werden soll - ***Wertetyp**: Zahl*
* *digits* - die Anzahl der Stellen, die gerundet werden sollen - ***Wertetyp**: Zahl (optional, Standardwert: 0)*
* *direction* - legt fest, ob die Zahl auf die nächste ganze Zahl auf- oder abgerundet werden soll - ***Wertetyp**: Konstante (optional, Standardwert: <mark style="color:red;">nearest</mark>)*\
  Mögliche Werte sind:
  * *<mark style="color:red;">nearest</mark>* - Wert wird auf die nächste Zahl gerundet. Hier werden Zahlen mit dem Bruchteil "5" "von Null weg" gerundet.
  * *<mark style="color:red;">up</mark>* - Wert wird aufgerundet (weg von Null)
  * *<mark style="color:red;">down</mark>* - Wert wird abgerundet (gegen Null)

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

* Wenn *digits* ein negativer Wert ist, wird zur nächstgelegene Zahl links vom Dezimalkomma gerundet.
* Der Parameter *direction* kann nur definiert werden, wenn auch der Parameter *digits* definiert ist.

#### Beispiele <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>


---

# Agent Instructions: 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/version-1.83-de/nedyx/clearlines-funktionen/mathematische-funktionen/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.
