Mathematical Functions in MSW Logo
The four basic maths functions are:
+ |
* |
- |
/ |
You may carry out mathematical operations using numbers, or variables.
label 2 * 4 | produces: 8 |
make "MyVariable 17 label :MyVariable * 3 |
produces: 51 |
make "FirstNumber 33 make "SecondNumber 10 label :FirstNumber * :SecondNumber |
produces: 330 |
make "FirstNumber 33 make "SecondNumber 10 label (:FirstNumber * :SecondNumber) / 3 |
produces: 110 |