> For the complete documentation index, see [llms.txt](https://docs.yaycommerce.com/yaycurrency/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yaycommerce.com/yaycurrency/configurations/custom-rounding.md).

# Custom Rounding

If you wish to round product prices to a specific ending figure, you can enable the **Rounding** feature.

### 1. Set up WooCommerce price rounding

Head over to **YayCurrency** > **Manage Currency** > **Action**.

Click the Gear icon to find the Custom Rounding section.&#x20;

![Implement custom rounding with the YayCurrency plugin](/files/xq6vNFGW91LOzn7UqntL)

Rounding comes with 3 options:&#x20;

* Up
* Down
* Nearest

And a variety of thresholds:&#x20;

* 0.10&#x20;
* 0.50&#x20;
* 1&#x20;
* 10&#x20;
* 100&#x20;
* 1000

Depending on your target currency and the best practices of its national culture, you can choose to round the price up/down/nearest to the custom threshold.

**Note**: In order to reduce the loss, we recommend you round up the product prices.

**Examples of how to round numbers**:

365.365 becomes:

365.40 when rounding up to the threshold 0.10

365.50 when rounding up to the threshold 0.50

366 when rounding up to the threshold 1

370 when rounding up to the threshold 10

400 when rounding up to the threshold 100

1,000 when rounding up to the threshold 1000

### 2. Auto-deduct an amount from the rounded price

This option allows you to deduct a small amount from the converted and rounded price.

You can use it to make the price end in your favored digits such as 0.49 or 0.99 and so on.

Eg: 370 becomes 369.99 after deducting 0.01

### 3. Test the Price Ending

In the bottom fields, you can easily enter any test amount to double-check the outcome of custom rounding and subtraction.

![365.365 becomes 365.99 after rounding up to the nearest threshold 1 and deducting 0.01](/files/-McOAiKhEyxKpHPm0JIx)

Happy Price Ending! 🧡


---

# 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.yaycommerce.com/yaycurrency/configurations/custom-rounding.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.
