BBC micro:bit Recipes by Pradeeka Seneviratne

BBC micro:bit Recipes by Pradeeka Seneviratne

Author:Pradeeka Seneviratne
Language: eng
Format: epub
ISBN: 9781484249130
Publisher: Apress


The micro:bit display will show the following answer as the output.8

8-3. Finding Absolute Value of a Number

Problem

You want to find the absolute value of a number.

Solution

In the Toolbox, click on the Basic category. Then click and drag the show number block over, and place it inside the on start block.

In the Toolbox, click on the Math category. Then click and drag the absolute of block over, and place it inside the placeholder of the show number block.

Type the value 8 in the text box of the absolute of block.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.