round ( ) — Scratch Block Guide
Rounds a decimal number to the nearest whole integer.
What this block does
Rounds a decimal number to the nearest whole integer.
Display clean whole seconds from "timer" or snap sprites to grid cells.
- Category: Operators Blocks
- Key tip: For always rounding down or up, use "floor" or "ceiling" inside the math-function block.
Working Scratch example
Try building this small script in the Scratch editor, predict what will happen, then click the green flag to test it.
- When green flag clicked
- Forever
- Set seconds to (round timer)
Try it: Shows neat whole numbers instead of 4.38291 seconds.
Related block guides
Explore other blocks in the same category or return to the full English Block Dictionary.
FAQ
When should I use "round ( )" in Scratch?
Display clean whole seconds from "timer" or snap sprites to grid cells. For always rounding down or up, use "floor" or "ceiling" inside the math-function block.
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.