> For the complete documentation index, see [llms.txt](https://ultimateshop.superiormc.cn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ultimateshop.superiormc.cn/features/number-format.md).

# 🔢Number Format

## Built-in number format

You can use plugin built-in number format and set them in `config.yml` file.

```yaml
number-display:
  format:
    enabled: true
    decimal: "#,##0.00##########"
    integer: "#,##0"
  strip-trailing-zeros:
    enabled: true
```

## Use other PAPI extension

* Set `number-format.format.enabled` option to `false`.
* Download and install **PlaceholderAPI** plugin in your server.
* Install **Formatter** expansion with this command `/papi ecloud download Formatter`. Click [here](https://github.com/PlaceholderAPI/PlaceholderAPI/wiki/Placeholders#formatter) to know more.
* Edit `placeholder` option in price configs to this: `%formatter_number_format_{amount}%`.

Example:

```yaml
  C:
    price-mode: CLASSIC_ALL
    product-mode: CLASSIC_ALL
    products:
      1:
        material: potato
        amount: 1
    buy-prices:
      1:
        economy-plugin: Vault
        amount: 20000000
        placeholder: '&6%formatter_number_format_{amount}% Coins'
        start-apply: 0  
```

<figure><img src="/files/JcxeD5wbLSKfZeHecMOu" alt=""><figcaption></figcaption></figure>

* Start from **2.3.2**, you can just use those options in `config.yml` to let plugin help you change `{amount}` placeholder instead of you change it manually!

```yaml
placeholder:
  auto-settings:
    # If enabled, we will try change {amount} in price placeholder option to the value you set here.
    change-amount-in-all-price-placeholder:
      enabled: true # <--- Change this to true
      replace-value: '%formatter_number_format_{amount}%' # <--- Change to same as here
```
