Course of Raku / Essentials / Variables and data types essentials / Numbers / Integer numbers

Quiz: Integer numbers

Select all the examples with valid integer numbers.

142
10
1-42
1+100You can add + if you want.
03.14This is a valid number, but not an integer number.
11000
11_000
110_000
010__000Two underscores are not allowed.
0_100A number cannot start with underscore.
0100_A number cannot end with underscore.
11_0_0_0This is correct, but looks weird.
110_00This is also correct, but it is not the best choice.
050,000A comma does not split the number into thousands.
045 678 901Spaces are not allowed inside numbers.

Course navigation

← Integer numbers   |   Quiz: Unicode digits and numbers →