Percentage of a number
The Percentage of a number robot calculates a percentage inside Bitrix24 (Alaio) business processes and robots. It takes a number, a percentage and an operation: of — take N% of the number, add — add N%, subtract — subtract N%. It returns the result and, separately, the percentage value itself, with a configurable precision (2 decimal places by default).
The robot computes a percentage of a number right inside a business process, with no formulas or external calculators. Provide a number, a percentage and an operation: of returns N% of the number, add adds the percentage to the number, subtract subtracts the percentage from the number. The number of decimal places is set by the precision parameter (default 2); both comma and dot are recognised as the decimal separator. The robot returns two values: the final result and, separately, the percentage value, so you can store it in a field or reuse it in later steps. Typical use cases: calculate a 15% discount on the deal amount, add 20% VAT to a price, compute a markup or a commission. Pass the result into a deal, contact or company field with the next robot.
What input parameters does the robot accept?
| Parameter | Type | Required? | Default |
|---|---|---|---|
| Number | string | yes | |
| Percentage | string | yes | |
| Operation: of — N% of the number, add — number + N%, subtract — number − N% | string | — | |
| Decimal places in result (default 2) | int | — |
What does the robot return?
| Parameter | Type |
|---|---|
| Result | string |
| Percentage value (N% of the number) | string |
Scenario: discount calculation in a deal
- A deal enters the Invoice stage
- The robot computes: operation subtract, number — the deal amount, percentage — 15
- The result is written to the Discounted amount field by the Update deal robot