On Wed, 06 Jan 2016 04:47:03 -0800, dankogai wrote:
> Folks,
> 
> Rakudo needs to add one more digit for each Num it stringifies.
> 
> % perl6 -e 'pi.say'
> 3.14159265358979
> % ruby -e 'puts Math::PI'
> 3.141592653589793
> 
> As a result…
> 
> % perl6
> > 3.14159265358979 == pi
> False
> > 3.141592653589793 == pi
> True
> 
> I consider this more severe than perl5 because:
> 
> > ::('&EVAL')(pi.perl) == pi
> False
> 
> FYI perl5 has the same problem.
> 
> https://rt.perl.org/Public/Bug/Display.html?id=127182
> 
> Please also consider adding hexadecimal floating point notation
> support (and make .perl happier).
> 
> Yours,
> 
> Dan the Bit-Picking Rakudo Monger


Thank you for the report. This is now fixed.

Fix:  https://github.com/MoarVM/MoarVM/commit/067c0594103a025
      https://github.com/MoarVM/MoarVM/commit/8841c4241b4faa8
      https://github.com/MoarVM/MoarVM/commit/af2eb8a7f7d4344
      https://github.com/MoarVM/MoarVM/commit/4d3fc2818d0032b
      https://github.com/rakudo/rakudo/commit/8422d7b4e23678b
      https://github.com/rakudo/rakudo/commit/a2a2a745c4242d1
Test: https://github.com/perl6/roast/commit/589e30a8e809bba7f

Reply via email to