This describes Math in AJLogo.
Please feel free to send mail or chat with me at the site.
The math in AJLogo is in prefix notation.
= a 55 is an example of assignment using prefix notation
= a + 33 22 adds 22 to 33 and assigns the value to a
++a increments a (adds 1 to a)
Generally all Java math is available (including *,/,trig, exp, int, rounded int, ceiling, floor, random)
* Flow control
while loop example:
for loop example:
|Monday, 15-Oct-2018 13:40:52 UTC|