Accepted & Understood!
We make use of cookies to provide the best possible experience for you and to gather analytics data. By continuing usage of this website you accept these cookies and our Terms of Service and Privacy Policy.
Accepted & Understood!

Community » Forum » Feedback » Bug with withdrawing from bank after interest

15th Nov 2017 13:30:57
If you deposit some money in a bank and it gains some interest, your balance on the bank's screen may look like you have $10.01 but if you try to withdraw that, it will error out saying that's more than what you deposited. You can withdraw $10 without any issues.

I think what's happening is a rounding error. Your deposit accumulates interest and there are more floating point digits on the backend we're not seeing.
15th Nov 2017 13:52:41
Admin Moderator
It is indeed a rounding error. I have fixed so that future deposits should only grow by 2 decimals instead of 4.
15th Nov 2017 20:50:27
It might be a better idea to use decimals instead of floats.
15th Nov 2017 22:57:28
or using floor() instead of round()