develooper Front page | perl.perl6.compiler | Postings from April 2018

[perl #128913] [BUG] decimal->float non-monotonic conversion

Thread Previous | Thread Next
Zoffix Znet via RT
April 13, 2018 08:38
[perl #128913] [BUG] decimal->float non-monotonic conversion
Message ID:
On Fri, 12 Aug 2016 10:00:17 -0700, wrote:
> > "9.9989999999999991e0".EVAL < "9.998999999999999e0".EVAL
> True
> Observe that the literal with a greater nominal value yields a lower
> Num value.  (The .EVAL circumlocution is required to work around [perl
> #128820].)  This implies that at least one of the literals is getting
> incorrect rounding, which was the subject of [perl #128912].  (In fact
> the greater one is getting correct rounding and the lower one is not.
> The correct roundings of both are the same.)  But this case goes beyond
> the rounding merely being incorrect; with this behaviour the rounding
> isn't even self-consistent.
> -zefram

Thank you for the report. This is now fixed.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About