in reply to Re^5: Small Perl 6 discoveries II, Rats
in thread [Perl6] Small discoveries I, __DATA__
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Small Perl 6 discoveries II, Rats
by syphilis (Archbishop) on Oct 22, 2017 at 23:12 UTC | |
by raiph (Deacon) on Oct 24, 2017 at 02:55 UTC | |
by syphilis (Archbishop) on Oct 28, 2017 at 11:41 UTC | |
by raiph (Deacon) on Oct 28, 2017 at 13:52 UTC | |
by syphilis (Archbishop) on Oct 29, 2017 at 11:10 UTC | |
by Anonymous Monk on Oct 24, 2017 at 15:57 UTC | |
by syphilis (Archbishop) on Oct 25, 2017 at 02:54 UTC | |
by raiph (Deacon) on Oct 27, 2017 at 19:03 UTC | |
by holli (Abbot) on Oct 25, 2017 at 01:43 UTC | |
by raiph (Deacon) on Oct 27, 2017 at 18:38 UTC | |
| |
by raiph (Deacon) on Oct 27, 2017 at 19:25 UTC | |
by Anonymous Monk on Oct 28, 2017 at 06:48 UTC |