New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[powerpc64] perl prints subnormal doubledoubles incorrectly. #16507
Comments
From @sisyphusHi, I'm running perl-5.27.10, but the same issue is evident in perl-5.20.0 and For perls built with -Duselongdouble on my powerpc64 box the 'long double' $ perl -le 'print 2 ** -1074;' But this is the same as 2 ** -1021: $ perl -le 'print 2 ** -1021;' Similarly for all other subnormals I tried, perl's print and printf( "%e", Also, we see that the value being held by the NV is correct when we unpack This is clearly the pair of doubles DBL_DENORM_MIN and zero - which is the Cheers, $ perl -V Platform: Characteristics of this binary (from libperl): |
From @sisyphusOn Fri, 13 Apr 2018 22:39:50 -0700, sisyphus wrote:
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, |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#133110 (status was 'open')
Searchable as RT133110$
The text was updated successfully, but these errors were encountered: