# Units

In the units config, you can configure unit types to display the stats in.

This is the file that also handles conversions between units.

## Unit types

* `speed` - km/h and mph
* `distance` - km and mi
* `finance` - currency

Each unit has metric and imperial type that is automatically switch if you change `Config.UseImperialUnits`

Each type has label, modifier and precision.

* `label` - the unit label that will be displayed
* `modifier` - the value that will be multiplied by the value to get the correct unit
* `precision` - how many decimal places will be displayed


---

# Agent Instructions: 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://documentation.rcore.cz/paid-resources/rcore_stats/configs/config_units.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.
