... even if it's internal representation is flawed
It would be better to instead say "even if it's internal representation is rounded." Rounding is
not a flaw - unless, of course, the rounding was done in an incorrect manner.
... part of arithmetic operations which accumulated rounding errors
Similarly, I would rewrite that as (something like) "part of arithmetic operations which were rounded".
Just to be clear - both "flawed" internal representations and "rounding errors" are very rare in perl. I think both of those phrases should be reserved to apply to cases where rounding has been done incorrectly.
If those errors are encountered in perl-5.30.0 or later then I'd recommend
reporting them.
On USE_QUADMATH builds of perl, some sqrt() operations round incorrectly (by one unit of least precision). And, with USE_LONGDOUBLE builds of perl on Windows there's a specific range of values that don't assign correctly.
There's also some BSD and Solaris (and perhaps other) systems around that have some pretty weird rules regarding USE_LONGDOUBLE arithmetic. (I think that they are "flawed", though it might be arguable.)
Offhand, I struggle to recall there being any flawed internal representations or rounding errors on perl-5.30 or later when perl's NV is "double".
Cheers,
Rob
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.