# 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="/files/4832d0d9738efec29a0ccfa61d32473fc87475bf" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/79a80a2ff962616f74c38120f8b7ea817aa94578" 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="/files/ea9ddd81334693b33ac398d5c340ae93a1abb7ec" alt=""><figcaption></figcaption></figure>


---

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

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.
