Skip to content
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

Rounding issue [574.425 should be rounded to 574.43] #222

Open
MianSaleem opened this issue Nov 6, 2020 · 2 comments
Open

Rounding issue [574.425 should be rounded to 574.43] #222

MianSaleem opened this issue Nov 6, 2020 · 2 comments

Comments

@MianSaleem
Copy link

First of all, thank you very much for this amazing library.

I want to report the issue with decimal round as following (tested on demo)

574.425 should be rounded to 574.43 same as 574.415 is rounded to 574.42 but 574.425 is being rounded to 574.42. I have tested it on demo here

Thank you

@overthemike
Copy link

Looks like it's probably checking the 3rd decimal spot to be anything greater than 5 instead of greater than or equal to 5.

574.4250000000001 will produce 574.43 for example. Not sure if that helps at all but thought I'd throw it out there.

@zsxlly
Copy link

zsxlly commented Dec 27, 2022

Does anyone else solve the problem of this library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants