5 ms·
It surprised me too, since it's not what I got. $ perl6 --version This is Rakudo version 2018.03 built on MoarVM version 2018.03 implementing Perl
by _kst_ 8y ago
It surprised me too, since it's not what I got.
$ perl6 --version
This is Rakudo version 2018.03 built on MoarVM version 2018.03
implementing Perl 6.c.
$ perl6 -e 'print 9999999999999999.0-9999999999999998.0;print "\n";'
2
$
(Incidentally, I would have used "say" rather than "print" with an explicit newline.)
- lelf 8y ago› perl6 -e '.say for $*PERL.compiler, 9999999999999999.0-9999999999999998.0' rakudo (2018.11) 1
- lizmat 8y agoIndeed, there was a bug with determining when to switch to floats, that was fixed by Zoffix in August: https://github.com/rakudo/rakudo/commit/fec1bd74f97e257d4c88673cd62fdcae39f587a3