-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
DEC64 Type (Decimal Floating Point) #18215
Comments
@joshfree, what are your thoughts on this? |
For those not familiar with DEC64 here are some other readings: HN discussion on DEC64 That aside, i'm not clear on the advantage? Numerical stability? Safety? Precision? |
@terrajobst I haven't heard of DEC64 before; the HN and Reddit thread are not very positive. |
Spec might need work, also is the Decimal64 IEEE 754, ISO/IEC/IEEE 60559:2011 version https://en.wikipedia.org/wiki/Decimal64_floating-point_format |
Not sure the IEEE version is much better; a lot of the HN and Reddit complaints were about the 255 representations of zero (and 16 representations of 1, 15 representations of 10 etc), however in the IEEE version
|
@AlgorithmsAreCool a smaller faster version of DEC64 has the fast path that if you precision is the same for all numbers in your problem domain (e.g. always 4 decimal digits for currency) then it is a quick op. From the C++ proposal to adopt IEEE 754 Decimal post C++ 11 (didn't make it into C++ 11)
|
A thing I've not understood Dec64 is more faster that IEEE Decimal64? In any case why not implement the IEEE one that is a standard and maybe in future it will be hardware accelerated (on some IBM not x86 workstation is already so)? |
@tannergooding, do we have any plans to do anything here, or can this be closed? |
This issue can likely be closed. Any work on future numeric types should be first prototyped on corefxlab under dotnet/corefxlab#2635, which tracks prototyping some of the existing standardized types such as:
|
As for |
thanks. |
As proposed by Douglas Crockford https://github.com/douglascrockford/DEC64
Presentation on it: https://youtu.be/PSGEjv3Tqo0?t=27m5s
The text was updated successfully, but these errors were encountered: