-
Notifications
You must be signed in to change notification settings - Fork 475
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
Using comparison operators with Decimals can give the wrong result #172
Comments
The relational operators cause |
That does indeed make a lot of sense, thanks for the explanation! The joys of lexicographic comparison. And of course you can't have Worth mentioning this in the docs as a caveat? |
As I did recently with big.js, in the next major release I may throw on calls to |
That's even better, as people don't read documentation :) |
The following behavior is somewhat confusing:
I'm aware there's dedicated comparison operators, but why does "elementary" comparison give the wrong result in this case?
The text was updated successfully, but these errors were encountered: