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

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

From: via RT
February 6, 2019 05:13
[perl #133110] [powerpc64] perl prints subnormal doubledoublesincorrectly.
Message ID:
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.


via perlbug:  queue: perl5 status: new Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About