Round ()

From PenguinMod Wiki
Jump to navigation Jump to search

The round () block is an Operators and reporter block which originates from Scratch. The block rounds any number with decimal points off.

Numbers with decimals equal or bigger than .5 wil be rounded by the number proceeding the inputted number, else they will be rounded off to the number predecessor of the number (ex. 2.5 rounded is 3, 2,4 is rounded to 2).

Workaround

round ()
...
[[File:|200px]]
Caption
Block Type Reporter Block
Category / Extension Operators
Status Who tf uses status

The workaround requires the floor and ceiling operators found in the () of () block.

For the workaround, see this.

See Also

[1]