Number
13 commands. Toolkit id ooa.number.
| Command | What it does |
|---|---|
| Calculate | Work out a number: pick an operation (add, divide, power, round up, average, percent of ...) or write a formula such as ($price$ * $qty$) * (1 + $tax$ / 100). |
| Compare numbers | True when the comparison holds, e.g. Amount greater than or equal to 1000; with a tolerance, close numbers count as equal. |
| Decrement | Subtract a step (1 by default) from a number. |
| Format as currency or unit | Write a number as money (1,234.50 EUR in the locale's way), as a percentage (15%) or with a unit (12.5 kg). |
| Format number | Format a number as text with thousands separators and fixed decimals, e.g. 1,234.50. |
| Increment | Add a step (1 by default) to a number. |
| List statistics | Count, sum, average, minimum, maximum and median of a list of numbers, in one step. |
| Number is between | True when the number lies between two others (the ends count unless you untick Include the ends). |
| Number to text | Write a number as plain text, with fixed decimals or a pattern such as 0000 or #,##0.00. |
| Number to words | Write a number in English words, for cheques and invoices: 1,234.50 as one thousand two hundred thirty-four dollars and fifty cents (lakh and crore for India). |
| Random number | Generate a random number between min and max (inclusive), whole or with decimals. |
| Round | Round a number to a number of decimal places. |
| Round to a step | Round a number to the nearest step, e.g. prices to 0.05 or 0.99 endings, times to 15 minutes, quantities to a pack size. |