> 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/manage-product-and-improve-data-es/reglas-edicion-masiva-y-enriquecimiento/como-utilizar-acciones-entonces-en-las-reglas/accion-de-regla-arrotonda-numero.md).

# Acción de regla: arrotonda numero

{% hint style="info" %}
Usado para: Redondear números, como los precios de tus productos.

Se usa en: sentencias "THEN" y sentencias "ELSE".
{% endhint %}

Después de hacer cálculos (p. ej. añadir impuestos o descuentos) sobre tus precios, estos pueden tener muchos decimales. Con la regla de redondear número puedes volver a redondear fácilmente tus precios a dos decimales o a un número entero. Al usar la regla de redondeo puedes elegir cómo quieres redondear el número. Las capturas de pantalla a continuación muestran las opciones entre las que puedes elegir:

<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>

Puedes elegir redondear tus números hacia arriba, hacia abajo o al más cercano. Si seleccionas "más cercano", Channable redondeará tus números en la dirección que dé el resultado más próximo.

En la captura de pantalla de abajo mostramos los resultados de usar la opción de redondeo "más cercano" para cada valor de redondeo. Como puedes ver, redondear al céntimo más cercano de 95 para un precio de 9.3412 lo redondeará hacia abajo a 8,95, porque 8,95 está más cerca de 9.3412 que 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/manage-product-and-improve-data-es/reglas-edicion-masiva-y-enriquecimiento/como-utilizar-acciones-entonces-en-las-reglas/accion-de-regla-arrotonda-numero.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.
