Round number (to N decimal places)
The Round Number robot rounds a number to a chosen number of decimal places using standard mathematical rounding in Bitrix24 (Alaio) business processes and robots. It accepts a number (comma or dot as the decimal separator) and a precision; negative precision rounds to tens, hundreds and beyond. It returns the rounded value in the Result field.
The robot rounds a number to the required precision with standard mathematical rounding, replacing manual calculations in the workflow designer. It takes a number (decimal separator may be a comma or a dot) and a precision: 0 rounds to an integer, a positive value sets the number of decimal places, and a negative value rounds to tens, hundreds and so on. Typical use cases: bring a deal amount to two decimal places before writing it to a field or sending it to the client; round a calculated discount or total to a whole unit; coarsen a quantity to tens for a report. It returns a string with the rounded value — use it in later steps of the process: write it to a CRM field, insert it into an email, or compare it in a condition.
What input parameters does the robot accept?
| Parameter | Type | Required? | Default |
|---|---|---|---|
| Number | string | yes | |
| Decimal places (0 = to integer, -2 = to hundreds) | int | — |
What does the robot return?
| Parameter | Type |
|---|---|
| Result | string |
Scenario: rounding a deal amount before writing it
- A deal business process has calculated the amount 1234.5678
- The robot rounds it to a precision of 2 decimal places
- The result 1234.57 is written to the deal field in the next step