Round ()

From PenguinMod Wiki (Official)
Jump to navigation Jump to search

The round () block is an operators 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

One simple workaround is to add 0.5 to the number then floor it.

([floor v] of ((number::grey) + (0.5)))

See Also