{"section":"tutorials","requestedLocale":"en","requestedSlug":"rounding-rules","locale":"en","slug":"rounding-rules","path":"docs/en/tutorials/prices/rounding-rules.md","branch":"main","content":"The concept of rounding rules consists of “rounding”, to avoid fractions and in commercial terms to show an advantage for the customer. To register a rounding rules, follow these steps:\n\n1. In the VTEX Admin, go to *Store Settings > Product > Price Rounding Rules*, or type *Price Rounding Rules* in the search bar at the top of the page.\n\nIn this screen you can, for example, adjust a price of R$19.85 to R$19.90; or R$48.70 to R$48.99. These modifications depend on what you think will most attract your target public in your line of business, and this will affect all the prices in the store.\n\n## How it works\n\nFor rounding prices you need to have a rule. This rule will let you select a price bracket to be rounded, the number of decimal places and the method of rounding. You can create a rule for cents, tenths of cents or units, and you can choose between three methods of rounding: “nine”, “nines” and “zero”. \n\n### Examples\n\n#### Cents:\n\n- **Nine:** adds a 9 with zeros to the right of it. E.g.: R$59.56 → R$59.59\n- **Zero: **adds a 0 with zeros to the right of it. E.g.: R$20.56 → R$20.60\n\n#### Tenths of a cent:\n\n- **Nine: **adds a 9 with zeros to the right of it. E.g.: R$59.56 → R$59.90\n- **Nines: **adds a 9 with nines to the right of it. E.g.: R$5.07 → R$4.99\n- **Zero: **adds a 0 with zeros to the right of it. E.g.: R$263.56 → R$264.00\n\n#### Unit:\n\n- **Nine: **adds a 9 with zeros to the right of it. E.g.: R$59.56 → R$59.00\n- **Nines: **adds a 9 with nines to the right of it. E.g.: R$5.07 → R$9.99 [sic]\n- **Zero: **adds a 0 with zeros to the right of it. E.g.: R$263.56 → R$260.00\n\n## Criteria for rounding \n\nRounding uses the _absolute difference_ between the original price and amounts close to it with the required ending. Applying the **Nines** method to the amount _9.70_ will round it up to _9.99_, since between _8.99_ and _9.99_, the latter is closer.\n\nThis being so, you must always remember that rounding will be by approximation to the amount with the required ending. Thus the user can round a price up or down, and this change will be according to the choice of a decimal place.\n\n- **Cent:** variation of up to 5 cents; \n- **Tenth of a cent: **variation of up to 50 cents; \n- **Unit:** variation of up to 5 _Reais_.\n\nAt the end, the user can view prices with the configurations of the rule, and can test a price to see how it will change when the rounding rule is applied.\n\nBelow you can see examples of the flows of adding, editing and deleting rounding rules. You can also see how to simulate prices for a specific rule.\n\n*_Procedure for creating a rule_*\n\n![config-arrendodamento-EN](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/prices/rounding-rules_1.gif)\n\n*_Procedure for modifying a rule_*\n\n![editar-arrendodamento-EN](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/prices/rounding-rules_2.gif)\n\n*_Procedure for deleting a rule_*\n\n![deletar-arrendodamento-EN](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/prices/rounding-rules_3.gif)\n\n*_Price simulation for a rule_*\n\n![teste-arrendodamento-EN](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/tutorials/prices/rounding-rules_4.gif)"}