in reply to Re^2: Small Perl 6 discoveries II, Rats
in thread [Perl6] Small discoveries I, __DATA__
On the bases that $x-$y==0 and $x==$y one is led to believe that $x and $y are exactly equivalent.> my $x = 1.111111111111111111111.FatRat; my $y = 1.111111111111111111 +111.Rat; $x - $y 0 > $x == $y True > say $x 1.111111111111111111111 > say $y 1.11111111111111111604544 >
Perhaps this ties in with:C:\>perl -le "printf '%.22e\n', 1.1111111111111111;" 1.1111111111111111604544e+000\n
How does one coerce perl6 into displaying the actual numerator and denominator of these rationals ?> my $x = 1.111111111111111111111.FatRat; my $y = 1.1111111111111111.N +um; $x - $y 0 > $x == $y True
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Small Perl 6 discoveries II, Rats
by Anonymous Monk on Oct 20, 2017 at 15:02 UTC | |
by syphilis (Archbishop) on Oct 22, 2017 at 11:34 UTC | |
by Anonymous Monk on Oct 22, 2017 at 15:14 UTC | |
by syphilis (Archbishop) on Oct 22, 2017 at 23:12 UTC | |
by raiph (Deacon) on Oct 24, 2017 at 02:55 UTC | |
|