# SETMAXDECIMALPRECISION

Set the maximum decimal precision that can be displayed in the report. Report viewers can set the precision to predefined values without requiring access to display settings. Users will not be able to increase the precision beyond the assigned value.

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

```javascript
SETMAXDECIMALPRECISION(value)
```

#### Arguments <a href="#arguments" id="arguments"></a>

value - Maximum number of digits that can be displayed after the decimal point

#### Example <a href="#example" id="example"></a>

```
SETMAXDECIMALPRECISION(8)
//Sets the decimal precision to 8
```

<figure><img src="/files/FepCcD5j5LRvWDRvMAOD" alt=""><figcaption><p>Setting the maximum precision to 10 digits</p></figcaption></figure>

Notice how the increase precision button gets disabled after the configured limit of 10 digits:

<figure><img src="/files/FepCcD5j5LRvWDRvMAOD" alt=""><figcaption><p>Setting maximum decimal precision with scripts</p></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.fabricplan.com/planning-sheets/formula-syntax/scripting-functions/setmaxdecimalprecision.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.
