We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe.
It's always a surprise for those know little about IEEE 754 when they first saw 0.1 + 0.2 != 0.3, like
0.1 + 0.2 != 0.3
Describe the solution you'd like
Add an option (default to false), and use decimal.js as the underneath implementation in
obsidian-dataview/src/expression/binaryop.ts
Lines 98 to 109 in 22a683e
Describe alternatives you've considered
IDK, maybe add some reminders in the numeric operations doc?
Additional context
Of course, an arbitrary-precision implementation would hurt performance, but I believe it's OK for such scenario.
edited: as I hit the cmd enter too early :( ps: happy to PR if it's worth doing for the core team
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem? Please describe.
It's always a surprise for those know little about IEEE 754 when they first saw
0.1 + 0.2 != 0.3
, likeDescribe the solution you'd like
Add an option (default to false), and use decimal.js as the underneath implementation in
obsidian-dataview/src/expression/binaryop.ts
Lines 98 to 109 in 22a683e
Describe alternatives you've considered
IDK, maybe add some reminders in the numeric operations doc?
Additional context
Of course, an arbitrary-precision implementation would hurt performance, but I believe it's OK for such scenario.
edited: as I hit the cmd enter too early :(
ps: happy to PR if it's worth doing for the core team
The text was updated successfully, but these errors were encountered: