# 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.&#x20;

### Syntax

```javascript
SETMAXDECIMALPRECISION(value)
```

### Arguments

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

### Example

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

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2F0A9YyoVh0pKkNmEuWDxb%2Fimage.png?alt=media&#x26;token=7824c672-9505-4b05-a5ba-b44e83c1cf88" 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="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FXfKH3DMzElYOgBLTH9Df%2FUntitled%20Project.gif?alt=media&#x26;token=dcdeaac4-caca-40de-9571-13aa03a6b52b" alt="How to use scripts to set maximum decimal precision"><figcaption><p>Setting maximum decimal precision with scripts</p></figcaption></figure>
