How it works
- Set the number, how many decimals to keep (0 for a whole number, up to 15) and the mode: nearest, up or down.
- Up and down ignore tiny floating-point noise first, so 1.1 rounded up to 2 decimals stays 1.1.
- It returns the rounded result.
Routines that use it
Clean percentages
Round a figure from Calculate to 1 decimal before showing it in Show banner.
Whole volume level
Round a worked-out level down to 0 decimals before Set volume.
Pages needed
Divide items by page size and round up to know how many rounds a Repeat needs.
Settings
| Setting | What it does |
|---|---|
| Number | The number to round. |
| Decimals | How many decimals to keep. |
| Mode | Round to the nearest, always up, or always down. |
Good to know
- At most 15 decimals.
Questions
- How do I round up in a routine?
- Use Round number with the mode set to up and the decimals you need.
- Can I round to a whole number?
- Yes, set decimals to 0.