In the previous section, we saw that numbers such as
1.5 are rational numbers. To make a number that corresponds to a
double number in C++, use scientific notation:
1E0 314e-2 -5e-20 5.424E40 7.6e+15
In this case, Raku creates instances of the
Num data type and stores the data as an IEEE number internally.
There are a few constants listed below that you can use straight ahead. They are the numbers of the
Num type. Both ASCII and Unicode variants are available:
💪 Or jump directly to the exercises to this section.