To prevent the numerator and denominator from becoming pathologically large, the denominator is limited to 64 bit storage. On overflow of the denominator a Num (floating-point number) is returned instead.However, Rat values generated from decimal notation can violate the 64-bit limit.
You can use $x.WHAT to find $x's type if you get tired of guessing based on the number of decimal places displayed.
In reply to Re^6: Small Perl 6 discoveries II, Rats
by Anonymous Monk
in thread [Perl6] Small discoveries I, __DATA__
by holli
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |