My powerpc64 box is getting a bit long in the tooth.
It's a "G5" box running Debian Wheezy, with gcc-4.6.3 and libc version 2.13.

If nvtype is "double", then I see pretty much the same as what I see on the Windows and Ubuntu boxes - perl's Atof frequently fails to assign floating point values correctly (wrong by up to 7 ULP), whereas Perl_strtod works flawlessly.

However, on this architecture, the "long double" nvtype is the Double-Double and neither perl's Atof nor Perl_strtod produce acceptable results when assigning values.
About 60% of floating point assignments are incorrect - by up to thousands of ULP.

I'd be hopeful that with gcc-7.x and later, and with a current version of libc, that Perl_strtod would work significantly better on the Double-Double perl.
But, it probably doesn't matter all that much anyway - because no-one runs Double-Double builds.

Cheers,
Rob

In reply to Re: Avoiding perl's Atof when assigning floating point values (powerpc64) by syphilis
in thread Avoiding perl's Atof when assigning floating point values by syphilis

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.