Scratch may already have a round function but it only rounds in the ones place. With this, it rounds the number to the nearest multiple of a power of ten. It can be very useful when trying to simplify graphs. Works with negative numbers too!
Click the green flag to round the number. Credits to Desmos for providing a website to work on I made all the code by myself! If you want to check it out go to https://www.desmos.com/calculator/psqzergb5n