New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rakudo gets confused when the exponent in scientific notation is large enough #1403
Comments
From @masak<diakopter> rakudo: say 0e99999999999 # masak |
From @cokeOn Tue Nov 17 08:32:14 2009, masak wrote:
00:29 <[Coke]> rakudo: say 0e99999999999 That looks better. assigning to moritz++ for testification. -- |
The RT System itself - Status changed from 'new' to 'open' |
From @masakOn Tue Aug 17 21:30:02 2010, coke wrote:
It does indeed "look better", in the sense that the original bug looked like crap. But it still 0e99999999999 is zero, not NaN. No amount of nines after the 'e' should make it not zero. |
From @nwc10On Tue, Aug 17, 2010 at 09:30:03PM -0700, Will Coleda via RT wrote:
NaN? Perl 5 thinks: $ perl -le 'print 0e99999999999' and I find its answers more pleasing. Nicholas Clark |
From @cokeOn Wed, Aug 18, 2010 at 12:41 PM, Nicholas Clark <nick@ccl4.org> wrote:
Whoops, I meant better in that it actually returned a value instead of Agreed that the actual value is wrong. -- |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S02-literals/numeric.t commit 7dd40fee588f6cb3b615506a106d67430d481f3c [t/spec] test for RT #70600, 0e9999999 Inline Patchdiff --git a/t/spec/S02-literals/numeric.t b/t/spec/S02-literals/numeric.t
index 921358f..a3ca469 100644
--- a/t/spec/S02-literals/numeric.t
+++ b/t/spec/S02-literals/numeric.t
@@ -49,6 +49,10 @@ is_approx 3.14159265358979323846264338327950288419716939937510e0,
'parsing 0.000... with 1024 decimal places lives';
}
+# RT #70600
+#?todo 'RT 70600'
+ok 0e999999999999999 == 0, '0e999999999999 equals zero';
+
done_testing;
# vim: ft=perl6 sw=4 ts=4 expandtab |
From @bbkrNOM: still broken bbkr:nom bbkr$ ./perl6 -e 'say so 0e999999999999999 == 0' |
From @cokeOn Sun Sep 11 13:27:22 2011, bbkr wrote:
Now reports true. Unfudged test in roast, closing ticket. -- |
@coke - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#70600 (status was 'resolved')
Searchable as RT70600$
The text was updated successfully, but these errors were encountered: