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

[BUG] - "-0.00 €" #10

Closed
margual56 opened this issue Sep 27, 2023 · 0 comments · Fixed by #13
Closed

[BUG] - "-0.00 €" #10

margual56 opened this issue Sep 27, 2023 · 0 comments · Fixed by #13
Assignees
Labels
Backend Affects the Backend in Rust bug Something isn't working

Comments

@margual56
Copy link
Owner

Bug description

It seems that there is an issue with floating-point precision: Sometimes, zero amounts get formatted as negative.

To Reproduce

  1. Have a zero value
  2. Observe how it sometimes is negative and sometimes positive

Expected behavior

0€ should be "0.00 €".

Screenshots

N/A

Information

  • OS: N/A
  • Program version: 0.1.2

Additional context
N/A

@margual56 margual56 added bug Something isn't working Backend Affects the Backend in Rust labels Sep 27, 2023
@margual56 margual56 self-assigned this Sep 27, 2023
margual56 added a commit that referenced this issue Sep 27, 2023
margual56 added a commit that referenced this issue Sep 27, 2023
* fix: Miscalculation on yearly costs

* fix: Typo on recurrences

* fix: bug #10; temporary fix for bug #11

* Fix: bug #6, solution is untested

* Run cargo fmt

* Fix: issue #7

* Bump version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Affects the Backend in Rust bug Something isn't working
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

1 participant