If you are looking for software to use, go to Huajun Software Park! software release AI product list
Location: Home pageTutorial strategyTutorialComputer software tutorials How about scratch...

How to set rounding in scratch-How to set rounding in scratch

Author: Qingchen Date: 2025-11-24

scratch
scratch-21.3.1.0

programming tools Storage size: 63.33 MB Time: 2022-05-26

Software introduction: The official version of scratch is a graphical programming software specially created for children. In addition to Web, scratch not only provides multiple offline versions...

Download now

Scratch is a revolutionary educational software that lowers the threshold for programming, making programming no longer a patent for a few people, but a new language that every child can master for expression and creation. It is an excellent bridge to the more advanced programming world (such as Python, JavaScript). Say goodbye to traditional typing programming, all instructions are encapsulated in "building blocks" of different colors and shapes. The programming process is like building Lego blocks, dragging the blocks from the building block area to the script area for splicing. Next, let the editor of Huajun explain to you how to set rounding in Scratch and how to set rounding in Scratch!

first step

Open Scratch and enter the code editing area.

scratch,scratchdownload


Step 2

In the building block category on the left, select the "Operation" category (purple building blocks).

scratch,scratchdownload


Step 3

Find the Round Result block (the icon is two overlapping dots).

scratch,scratchdownload


Step 4

Drag the "Round results" block into the script area (e.g. below "When the green flag is clicked").

scratch,scratchdownload


Step 5

Fill in the number that needs to be rounded (such as 4.4) in the input box of the building block, or connect the dynamic value through a variable.

scratch,scratchdownload


Step 6

Combined with the "Speak" block to display the results: for example

When the green flag is clicked

scratch,scratchdownload

Say [The result of rounding to 4.4 is]

say (round 4.4) // output 4

wait 1 second

Modify the numerical test (for example, if you enter 5.6, the result will display 6).

scratch,scratchdownload

The above is how to set rounding in Scratch and the method of setting rounding in Scratch compiled by Huajun editor for you. I hope it can help you!

Related articles