Math https://makecode.calliope.cc/blocks/math
Using numbers, number operators, and math functions.
num = 1; num = 2; Floating point: numbers with a fractional part Numbers can have
Using numbers, number operators, and math functions.
num = 1; num = 2; Floating point: numbers with a fractional part Numbers can have
Turn text that has just number characters into a floating point number value.
The text needs to have only number characters.
An number value.
This is so that numbers with a fractional portion can have precise calculations performed
Run part of the program in a loop continuously at a time interval.
Those are loops are part of the programming language and can have break and continue
Find which direction on a compass the Calliope mini is facing.
} }) Calibration Every time you start to use the compass (for example, if you have
Using numbers, number operators, and math functions.
num = 1; num = 2; Floating point: numbers with a fractional part Numbers can have
Event handlers – how they work.
Event handlers are active for the entire program execution Once you have registered
Get the acceleration value (milli g-force) in one of three dimensions, or the combined force in all directions (x, y, and z).
If you put your Calliope mini on a level table and push it diagonally, you have an
Split a string into smaller strings using a separator string to divide the larger string.
animalNames = animals.split(",",2) Now, the resulting array of animalNames will only have
How to declare and use variables.
Variables have a name, a type, and a value: name is how you’ll refer to the variable