Other Scratch calculations
Scratch (just like many other programming languages) has the capability to do some pretty advanced calculations. Here we will mention a bit more on the block that really helps us do a lot.
Getting ready
The block we are dealing with in this short recipe is the block from the Operators category.
How to do it…
These are the two simple steps we need:
All you need to do is drag this block to any spot you would normally drag a number or variable (this block represents a temporary variable—one that is calculated on the fly).
Change the function you wish to perform from sqrt (representing the square root function) to whatever you want.
These functions are all interesting in their own regard, so we encourage you to do some research on your own to learn more about what all of these great mathematical functions can do. The opportunities are endless!