https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36049

--- Comment #6 from Raphael Straub <[email protected]> ---
(In reply to David Nind from comment #3)
> Also wondering whether this is the same/similar to bug 35114
The similarity to bug 35114 is that both bugs deal with rounding issues. Thats
why I added this bug to "See Also".

I think that the patch in bug 35114 only solves part of the problem by
rearranging rounding operations and using a nearest rounding mode instead of
truncation in JavaScript. Yes, it improves the situation as there are fewer
cases with incorrect results, but cases with incorrect results still remain as
the underlying problem is not using decimal arithmetic. For example
"Math.round(18.90 * (100 - 5)) / 100" in JavaScript evaluates to "17.95"
instead of "17.96". This can only be fixed by using a decimal arithmetic
package like bignumber.js or big.js.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to