develooper Front page | perl.perl5.porters | Postings from February 2019

[perl #133110] [powerpc64] perl prints subnormal doubledoublesincorrectly.

From:
sisyphus@cpan.org via RT
Date:
February 6, 2019 05:13
Subject:
[perl #133110] [powerpc64] perl prints subnormal doubledoublesincorrectly.
Message ID:
rt-4.0.24-2074-1549430009-441.133110-15-0@perl.org
On Fri, 13 Apr 2018 22:39:50 -0700, sisyphus wrote:
 
> $ perl -le 'print 2 ** -1074;'
> 4.450147717014402766180465434665e-308

C's printf() produces the same incorrect output - so, either perl and C are making the same mistake, or perl is just passing on the value that C provides.

I suspect the latter - ie that this is NOT a bug in Perl.

I'm using gcc-4.6.3 and libc-2.13, which is fairly old stuff.

Cheers,
Rob


---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=133110



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