-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Bug on simple rounding #3100
Comments
Thanks for reporting, we should look into that! Most of the functions like |
@josdejong I wanted to take this this issue. |
Thanks @rakheesingh! Please let me know when you need help (I haven't looked into this and I'm not sure what is needed to fix it). |
Hello @josdejong! Wanted to know if the issue is still open? Would love to give it a try! |
adding an epsilon fixes it:
|
The issue is still open, thanks @developer-diganta for wanting to look into it. Help would be welcome. |
Fixed now in |
The issues section is used only for bug reports. Please use the Discussions section to ask questions and share ideas and suggestions.
Describe the bug
I use this library for simple rounding of currency values. Below, I want to convert 0.145 € to cents.
To Reproduce
round(0.145*100) returns 14, which should be actually 15
round(evaluate('0.145 * 100')) returns also 14, which is wrong
round(14.5) returns 15, which is correct
The text was updated successfully, but these errors were encountered: