Holds a number value.
This block cannot be used by itself and can be placed in any block that expects a number. Click inside the block to type a number.
Examples
Example 1
Each time the space bar is pressed, the monster will shrink to half its size. Pay attention to how the number block is used to set the original size of the monster as well as to determine how much to divide the monster's size by each time.
Syntax
math_number
Parameters
Name | Type | Required? | Description |
---|---|---|---|
number | Click inside the block to type any number |
Tips
- Only positive numbers, negative numbers, and decimals are accepted.
Found a bug in the documentation? Let us know at support@code.org.