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

fix: no negative currency cash register #564

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

a2937
Copy link
Member

@a2937 a2937 commented Jan 27, 2024

Checklist:

Closes #559

@a2937 a2937 requested a review from a team as a code owner January 27, 2024 22:41
Co-authored-by: Krzysztof G. <60067306+gikf@users.noreply.github.com>
@a2937
Copy link
Member Author

a2937 commented Mar 19, 2024

Is there still a merge conflict on this PR?

@a2937
Copy link
Member Author

a2937 commented Apr 2, 2024

I linted the file so this can finally be merged.

Copy link
Member

@naomi-lgbt naomi-lgbt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately this introduces a regression - the final test no longer passes for the demo project with these changes (there's likely an off-by-one error going on somewhere).

It may be beneficial to refactor the project to handle all of the math with cents as the base instead of dollars.

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

Successfully merging this pull request may close these issues.

Cash Register Demo - floating-point error
3 participants