-
Notifications
You must be signed in to change notification settings - Fork 23
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
Decimal not usable as Dict key: no hash method defined #35
Comments
This comment has been minimized.
This comment has been minimized.
As far as I can tell, implementing I think that implementing |
This issue also makes it impossible to use the 'unique' function |
DecFP (master) now supports hashing, though our solution involved |
Hashing could be supported by adding
|
Perhaps the hash could be defined in terms of the has of the underlying fields
s
,c
andq
of theDecimal
struct. For reference, here is a stacktrace:The text was updated successfully, but these errors were encountered: