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:
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:
2 * π
💪 Or jump directly to the exercises to this section.