Fixed currencies
-
Virgil Dupras
- Assigned user set to Virgil Dupras
- Milestone set to v1.5.7
-
Virgil Dupras
- Tag changed from task to bug
Hum, ok, I'm stupid. This is a huge BUG! in convert_amount, if the conversion takes place between amounts with a different exponent, the result will be 10 or 100 times bigger or smaller than what it should be.
-
Virgil Dupras
- State changed from new to port
(from [31]) [#45 Fixed currencies state:port] Fixed convert_amount() so it takes currency.exponent into account. It was done by removing the optimization that was in place in convert_amount that bypassed the internal value conversion system. Also, the Amount class now stores its float value so that it doesn't have to constantly do the maths every time amount.value is called.
-
Virgil Dupras
- State changed from port to fixed
(from [32]) [#45 Fixed currencies state:fixed] Ported [31] to the v1.5 branch.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.