> For the complete documentation index, see [llms.txt](https://edseries-plugins.gitbook.io/p/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://edseries-plugins.gitbook.io/p/pinnaprison/getting-started/number-formatting.md).

# Number Formatting

PinnaPrison formats large numbers (balances, prices, gains) through `format.yml`. There are two styles: **abbreviated** (`1.5M`) and **pretty** (`1,500,000`).

```yaml
default: 'abbreviated' # abbreviated or pretty

pretty:
  separator: ","

abbreviated:
  thousands: "k"
  millions: "M"
  billions: "B"
  trillions: "T"
  quadrillions: "Qa"
  quintillions: "Qi"
  # … all the way up to tredecillions and beyond
```

* **`default`** — the format used by the default placeholder/notation (`abbreviated` or `pretty`).
* **`pretty.separator`** — the thousands separator used by the pretty style.
* **`abbreviated.*`** — the suffix used for each magnitude. Rename them freely (e.g. set `millions: "Mil"`).

## Using the formats in placeholders

Any number-returning placeholder supports three suffixes:

| Suffix              | Style                                 | Example output |
| ------------------- | ------------------------------------- | -------------- |
| `_formatted`        | the `default` style from `format.yml` | `1.5M`         |
| `_formatted_pretty` | always pretty                         | `1,500,000`    |
| `_formatted_abbrev` | always abbreviated                    | `1.5M`         |

Example:

```yaml
'&7Balance: &a%pinnaprison_currency_balance_money_formatted%'
```

You can also format an arbitrary number on the fly:

```
%pinnaprison_notation_1500000%          -> 1.5M (default style)
%pinnaprison_notation_pretty_1500000%   -> 1,500,000
%pinnaprison_notation_abbrev_1500000%   -> 1.5M
%pinnaprison_calc_5*1000_formatted%     -> 5k
```

See the [Placeholders](/p/pinnaprison/reference/placeholders.md) reference for the full list.


---

# 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:

```
GET https://edseries-plugins.gitbook.io/p/pinnaprison/getting-started/number-formatting.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.
