Activities/Turtle Art/Numbers

From Sugar Labs

Jump to: navigation, search
english | español | HowTo [ID# 46899] 


The Numbers Palette (purple)

examples (3)

Image:TA-plus-example.png Image:TA-mod-example.png Image:TA-pythagoras-example.png

Image:TA-minus-example.png Image:TA-status.png

descriptions (3)

Image:TA-number.svgnumberused as numeric input in mathematic operators
Image:TAplus.svgadditionadds two numeric inputs
Image:TAminus.svgsubtractionsubtracts bottom numeric input from top numeric input
Image:TAproduct.svgproductmultiplies two numeric inputs
Image:TAdivision.svgdivisiondivides top numeric input (numerator) by bottom numeric input (denominator)
Image:TA-mod.svgmodmodular (remainder) operator
Image:TA-left-bracket.svg Image:TA-right-bracket.svgnumeric extensionsidentity operators used for extending blocks (See example above)
Image:TA-sqrt.svgsquare rootcalculate square root
Image:TA-random.pngrandomreturns random number between minimum (left) and maximum (right) values
Image:TA-equal.pngequal? logical = operator (plugs into an If blocks on the Flow Palette)
Image:TA-greater.pnggreater? logical > operator (plugs into an If blocks on the Flow Palette)
Image:TA-less.pngless? logical < operator (plugs into an If blocks on the Flow Palette)
Image:TA-and.svgand logical ⋀ (and) operator (links conditional)
Image:TA-or.svgor logical ⋁ (or) operator (links conditional)
Image:TA-not.svgnot logical ¬ (not) operator (links conditional)
Image:TA-print.svgprint Prints value in status block at bottom of the canvas (See example above)
Personal tools
Sugar
Teams
Projects
Local Labs
Google Translations
Using the Wiki