Closed breti closed 6 years ago
We should move this issue to the API, because the API returns -8.881784197001252e-16 instead of 0 as "balance" value.
I think you should store INTEGER cent values instead of REAL euro values to work around floating point issues?
would prefer this solution as well though it would oppose implementing other currencies like bitcoin where more precise floating point numbers are crucial.
it also recognized it as a common practice to treat every floating point number < 0.00001 as 0 due to floating point inaccuracy
Fixed in strichliste 2. Will be ready soon :)
Sometimes 0.00-EUR-accounts are shown in red, not black. Seems to be a rounding issue.
Please see this example. Database dump available upon request.