develooper Front page | perl.perl6.compiler | Postings from May 2012

[perl #112822] [BUG] Large enough decimal numbers lose precision in Rakudo

Thread Next
From:
Carl Mäsak via RT
Date:
May 8, 2012 14:47
Subject:
[perl #112822] [BUG] Large enough decimal numbers lose precision in Rakudo
Message ID:
rt-3.6.HEAD-4610-1336513629-308.112822-15-0@perl.org
On Tue May 08 14:35:44 2012, masak wrote:
> <masak> r: say 241025348275725.3352
> <p6eval> rakudo 415791: OUTPUT«241025348164334␤»
> <masak> ah.
> <masak> bug?
> <colomon> absolutely
> * masak submits rakudobug

<jnthn> Is it not just different levels of precision when the Rat is 
converted to a Num for printing?
<jnthn> Niecza normally gets a few more digits than Rakudo.
<masak> r: say 241025348275725.3352.nude
<p6eval> rakudo 415791: OUTPUT«301281685344656669 1250␤»
<masak> jnthn: seems you're right.
<masak> $ dc
<masak> 4k
<masak> 301281685344656669 1250/ p
<masak> 241025348275725.3352
* jnthn wonders if Rakudo can't get itself a bit more precision somehow 
though.
* masak adds these new findings to the ticket



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About