> 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="/files/1yLWI0vcmKuP2TknBCyx" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/IHfclp4TMeoQIoLmxQXA" 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="/files/nXdFTebH5uRIvDnOpFTJ" alt="" width="375"><figcaption></figcaption></figure> <figure><img src="/files/5PSP0jNgMr79HRUYmelE" 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="/files/tpF5BMDS7TOvJOR4JYKn" alt="" width="375"><figcaption></figcaption></figure> <figure><img src="/files/PEEFiohUPJvb9nlOc5ON" 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="/files/Tkt94Na8xcrHyNvqiolJ" alt="" width="375"><figcaption></figcaption></figure> <figure><img src="/files/cmG1Fvw1ayn9Bmq2k1TC" 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="/files/BtNX0Ejph9xW9lR4xmnQ" alt="" width="375"><figcaption></figcaption></figure> <figure><img src="/files/Woy2yWA2Vx2xdlf5SXyN" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
