Knowledge Base

Math Block

output-onlinepngtools__231_.png  spike_robot.jpgThis block works for EV3, SPIKE™, 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). 

 

Configuration

Description Compatible Blocks Range

Performs a mathematical operation between two numbers.

 

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

Comments

Please sign in to leave a comment.