> For the complete documentation index, see [llms.txt](https://docs.documint.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.documint.me/templates/working-with-dynamic-data/field-tokens/token-formatting/number.md).

# Number

## Number Formatting

{% embed url="<https://youtu.be/ttMJIqvLNHs?si=FD4Wq5IkCMBBJ7PW>" %}

* Decimal places and thousands separators.
* Currency and percentage formatting.
* Default value.
* Display rules.

First, click on the token. To format it, you can click on `Edit Token` on the properties tab, click on the cog icon, or even double-click the token.

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2Fz72NcdqAbG00wBRB2JqK%2Fedit%20number%20token.png?alt=media&amp;token=ad6bb5b1-42ed-4986-8e6f-c3ce8522acb6" alt=""><figcaption></figcaption></figure>

This pop-up will show up. There you'll be able to set up the number formatting:

<figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FNTcLwmkACAiCq4nh81YL%2Fnumber%20properties.png?alt=media&amp;token=308f0c5f-9ff9-4b26-b41c-2dc827c8cdcc" alt="" width="375"><figcaption></figcaption></figure>

### Plain Number

For a standard number, you can keep the `Number Type` set to `Plain`. To change its format, click on the dropdown menu and select your desired format. You can also specify the number of decimal places you want to display.

<div><figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FDTgYJjgSzR91p30X4s0t%2Fformat%20plain%20number.png?alt=media&amp;token=71401dfe-0cb0-4c18-bdd2-fb1022667269" alt="" width="375"><figcaption></figcaption></figure> <figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FUPwiXkKzAS3WthQD41Yv%2Fformat%20plain%20number%20(decimals).png?alt=media&amp;token=c20ebe7d-4789-42f3-863a-33a5f008ad16" alt="" width="375"><figcaption></figcaption></figure></div>

### Currency

And to format a currency, select `Currency` under `Number Type`. Then choose the number of decimal places you want to display. You can also select a locale to display the currency and separators according to the desired location.

<div><figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FoPSVqISdP3EOXMYide3M%2Fformatting%20currency%20token%201.png?alt=media&amp;token=fdc63415-4206-43f1-ada8-d045891b695a" alt="" width="375"><figcaption></figcaption></figure> <figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FW1F3MwzS13etvXGWF3n9%2Fformatting%20currency%20token%202.png?alt=media&amp;token=de4cd47a-c593-4dc9-9d97-0bd1d49faf97" alt="" width="375"><figcaption></figcaption></figure></div>

### Percentage

For the percentage, just choose `Percent` as the `Number Type`. Here you can also select the format and the number of decimal places.

<div><figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FG8LsBEMVEtARkxetgEkr%2Fformatting%20percentage%20token%201.png?alt=media&amp;token=e7873115-b028-423d-8411-9efb92f3a09b" alt="" width="375"><figcaption></figcaption></figure> <figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FFvRu5XRJkEhfP5224yJA%2Fformatting%20percentage%20token%202.png?alt=media&amp;token=63ffa440-0b58-4538-9339-c9e460f4382a" alt="" width="375"><figcaption></figcaption></figure></div>

### **Custom Formatting**

If you need to change the thousands and decimal separators, you can select custom in the dropdown.&#x20;

<div><figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FvzC08cRuRnBkZ7kuRtI0%2Fcustom%20number%20formatting%201.png?alt=media&amp;token=cf3bb983-1e59-4518-965f-891d60e943ea" alt="" width="375"><figcaption></figcaption></figure> <figure><img src="https://1903534506-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTY5wPd81K7B5rjyG5tjS%2Fuploads%2FZnVXBfx252CffRXIIHDc%2Fcustom%20number%20formatting%202.png?alt=media&amp;token=f11bc5c1-f274-43c8-91c2-670b6929be52" alt="" width="375"><figcaption></figcaption></figure></div>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.documint.me/templates/working-with-dynamic-data/field-tokens/token-formatting/number.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
