Use this block to specify a number you want to use in your app.
You can also round up or down a decimal figure into an integer using the round block
You can also round a number to a selected amount of decimal places
There is also a block for irrational numbers like
Returns true or false based on whether the chosen condition applies to the number
If the given number is of a lower value than the lower bound, this block will set the given number to have the value of the lower bound.
If the given number is of a higher value than the upper bound, this block will set the given number to have the value of the upper bound.
Perhaps the most often used calculation in an app is
addition but this block also supports
Returns the remainder when a number is divided by another number.
There are also a few more advanced calculation blocks that may be helpful including
These blocks will return a value assuming the input is given in degrees.
For games and other apps, it may be important to introduce randomness into your app