Knowledge Base

Math Block

output-onlinepngtools__231_.png  This block works for both EV3, Zappy, and Ruby!zappi1_flip.png  output-onlinepngtools__101_.png


Numbers are all around us, and the numerical operators allow you to perform mathematical operations between two numbers. These numbers can be constants or variables.  

Insert two numbers (or variables) and use the block's drop-down menu to choose between the various operations. 

Example Program

In this program, the Set Variable block causes the power of the Drive block to increase by 1 each second (for each iteration of the loop). 



Description Compatible Blocks Range

Performs a mathematical operation between two numbers.


-∞ to ∞
Was this article helpful?
0 out of 0 found this helpful


Please sign in to leave a comment.