September 2017
Beginner
402 pages
9h 52m
English
To get the two parts of a Rat value, use the numerator and denominator methods. Let's take a look at how they work on the example of the value from the previous section:
my $x = 10/3;say $x.numerator; # 10say $x.denominator; # 3
Read now
Unlock full access