Just a quick update. I went to this site
Yes, I've been there too - but haven't tried any of it out.
I gather these are libraries that you link to if you want enhanced DFP coverage.
The "decNumber" package appears to be software only, while DFPAL can tap into available hardware capabilities, falling back to decNumber where necessary.
The
mpfr home page links to decNumber, along with a link to what is presumably
Intel's equivalent.
And there's links there to a couple of other decimal packages -
MathCW and
mpdecimal.
So there's plenty of additional chasing up to do for anyone so inclined :-)
BTW, the original wiki page that you linked to contains a nice little
atodecimal implementation that works for both _Decimal64 and _Decimal128.
Unfortunately it won't evaluate 'inf', 'nan', or scientific notation inputs correctly and, by the time I add the perl code to accommodate that limitation, it probably won't be much faster than what I'm already doing.
But I think I might use it anyway as it's cleaner than what I've presently got.
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.