Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^5: Decimal Floating Point (DFP) and does Perl needs DFP?

by syphilis (Archbishop)
on Jan 18, 2015 at 01:56 UTC ( [id://1113624]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Decimal Floating Point (DFP) and does Perl needs DFP?
in thread Decimal Floating Point (DFP) and does Perl needs DFP?

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1113624]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-25 17:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found