> For the complete documentation index, see [llms.txt](https://helpcenter.channable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/rule-action-round-number.md).

# Rule action: Round number

{% hint style="info" %}
Used for: Rounding numbers, such as the prices of your products.

Used in: "THEN"-statements and "ELSE"-statements.
{% endhint %}

After doing calculations (e.g. adding tax or discount) with your prices, your prices may have a lot of decimals. With the round number rule you can easily round your prices back to two decimals or to a whole number. When using the round number rule you can choose how you want to round the number. The screenshots below show which options you can choose from:

<figure><img src="https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/kCUL0b6wnDQbyeVN60PJ/Round_numbers_rule_2_%20_ENG.PNG" alt=""><figcaption></figcaption></figure>

<figure><img src="https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/NaFSBYmqA9iubFUgVOKw/Round_numbers_rule_%20_ENG.PNG" alt=""><figcaption></figcaption></figure>

You can choose to round your numbers up, down or take the closest. If you select "closest" Channable will round your numbers in the direction that has the nearest result.

In the screenshot below we show the results of using the "closest" rounding option for every rounding value. As you can see, rounding to the closest 95 cents for a price of 9.3412 will round it down to 8.95, because 8.95 is closer to 9.3412 than 9.95.

<figure><img src="https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/6vxQHNUmUFRENq0yHRUH/channable_rules_what%20does%20each%20rule%20do%20rule%20round%20number%201.png" alt=""><figcaption></figcaption></figure>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/rule-action-round-number.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
