> For the complete documentation index, see [llms.txt](https://fixed.onepub.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fixed.onepub.dev/storing.md).

# Storing

## Storing fixed amounts

&#x20;If you need to store or transmit a fixed value we recommend that you store the value as two discrete numbers:

* &#x20;minorUnits
* scale

Both values should be stored as integers. If storing in a database minorUnits may need to be stored in a large int type.

Storing the value using this technique guarantees no precision loss when storing, transmitting or retrieving Fixed decimal values.
