Round up / down (ceil / floor)
The Round up / down robot rounds a number strictly in one direction inside Bitrix24 (Alaio) business processes and robots: up (ceil) always rounds up, down (floor) always rounds down. It supports a rounding step (e.g. 10, 100, 0.5; default 1) and returns the rounded result with the number of decimals inferred from the step.
The robot always rounds a number in the chosen direction, unlike ordinary math rounding to the nearest value. Direction up (ceil) rounds up, down (floor) rounds down. The step parameter lets you round not only to a whole number but to multiples of 10, 100, 0.5 or any other value (default step 1); the number of decimal places is derived automatically from the step, and both comma and dot are recognised as the decimal separator on input. Typical use cases: calculate how many boxes are needed for an order (always up), determine the number of full days or units, round a price down to tens. Write the rounded result into a deal, contact or company field with the next robot, or use it in a condition.
What input parameters does the robot accept?
| Parameter | Type | Required? | Default |
|---|---|---|---|
| Number | string | yes | |
| Direction: up or down | string | yes | |
| Rounding step (e.g. 10, 100, 0.5). Default 1 | string | — |
What does the robot return?
| Parameter | Type |
|---|---|
| Result | string |
Scenario: calculating the number of boxes for an order
- A process starts on a deal
- The robot rounds: number — item quantity / box capacity, direction up, step 1
- The result — the required number of boxes — is written to a deal field