Skip to main content

Number

13 commands. Toolkit id ooa.number.

CommandWhat it does
CalculateWork 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 numbersTrue when the comparison holds, e.g. Amount greater than or equal to 1000; with a tolerance, close numbers count as equal.
DecrementSubtract a step (1 by default) from a number.
Format as currency or unitWrite 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 numberFormat a number as text with thousands separators and fixed decimals, e.g. 1,234.50.
IncrementAdd a step (1 by default) to a number.
List statisticsCount, sum, average, minimum, maximum and median of a list of numbers, in one step.
Number is betweenTrue when the number lies between two others (the ends count unless you untick Include the ends).
Number to textWrite a number as plain text, with fixed decimals or a pattern such as 0000 or #,##0.00.
Number to wordsWrite 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 numberGenerate a random number between min and max (inclusive), whole or with decimals.
RoundRound a number to a number of decimal places.
Round to a stepRound 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.