Introduction: Ordering Decimal Numbers Using the Micro:bit As Instructional Material
At the end of the lesson, students should be able to code the micro:bit to display decimal numbers in descending order of magnitude.
Step 1: COMPARING AND ORDERING DECIMAL NUMBERS
What is a decimal number?
A decimal number can be defined as a number whose whole number part and the fractional part is separated by a decimal point.
A decimal number can be defined as a number whose whole number part and the fractional part is separated by a decimal point.
Step 2: Part of a Decimal Number
The two parts of a decimal number are:
1. Whole number part;
2. Fractional part.
The whole number part can greater than or equal to one, while the fractional part is
always less than one.
From the diagram above:
* 682.26> 632.48, and
* 42.68 > 42.36
1. Whole number part;
2. Fractional part.
The whole number part can greater than or equal to one, while the fractional part is
always less than one.
From the diagram above:
* 682.26> 632.48, and
* 42.68 > 42.36
Step 3: Micro:bit Game –Ordering of Decimals
Use the Blocks editor to program the micro:bit to order the following decimals from largest to smallest [the largest decimals shows up followed by the next largest decimals]:
* 3.5 and 3.6
STEPS
1. Drag out the button A pressed block.
2. Show the largest decimal followed by the next largest number.
Use the show number block for this.
* 3.5 and 3.6
STEPS
1. Drag out the button A pressed block.
2. Show the largest decimal followed by the next largest number.
Use the show number block for this.

