-
Notifications
You must be signed in to change notification settings - Fork 0
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
misc decimal #690
Comments
A more direct comparison would be with: http://mongoc.org/libbson/current/index.html The 'bson' implementation of decimal is the same fixed "bid" 128-bit IEEE 754-2008 standard. The python version (which is mpdecimal) is a dynamic 32/64/128-bit of a variant of the same standard. I'm confident both (I have freely studied the algorithms from both to help write my library.) |
Speaking of that; is there any movement to adding 128-bit integers to Nim? GCC 4.1 and later support Using 128-bit uint math on the significand (the numbers part) for some of the ops would very likely improve speed quite a bit. (EDIT) Yeah, I kind of recall this now. If 128 bit support in a 64 bit architecture is detected, mpdecimal totally uses uint128 for the math. |
performance
for nim-lang#17699, we should have a performance comparison against established decimal128 libraries.
links
libmpdec - C library
libmpdec++ - C++ library
import decimal
The text was updated successfully, but these errors were encountered: