Activities/Turtle Art/Numbers
< Activities | Turtle Art
Revision as of 04:08, 1 December 2010 by Tonyforster (talk | contribs) (→The Numbers Palette (purple))
The Numbers Palette (purple)
THIS PAGE IS OUT OF DATE SEE Activities/Turtle_Art#Numbers_Palette
examples (3)
descriptions (3)
number | used as numeric input in mathematic operators | |
addition | adds two numeric inputs | |
subtraction | subtracts bottom numeric input from top numeric input | |
product | multiplies two numeric inputs | |
division | divides top numeric input (numerator) by bottom numeric input (denominator) | |
mod | modular (remainder) operator | |
numeric extensions | identity operators used for extending blocks (See example above) | |
square root | calculate square root | |
random | returns random number between minimum (left) and maximum (right) values | |
equal? | logical = operator (plugs into an If blocks on the Flow Palette) | |
greater? | logical > operator (plugs into an If blocks on the Flow Palette) | |
less? | logical < operator (plugs into an If blocks on the Flow Palette) | |
and | logical ⋀ (and) operator (links conditional) | |
or | logical ⋁ (or) operator (links conditional) | |
not | logical ¬ (not) operator (links conditional) | |
Prints value in status block at bottom of the canvas (See example above) |