pavog / craftconomy3

An economy plugin for minecraftservers.
GNU Lesser General Public License v3.0
19 stars 8 forks source link

Strange decimal places #61

Open Androkai opened 5 years ago

Androkai commented 5 years ago

I observed some strange decimal places on the player's balance in the database appearing from time to time. An example:

I configured my shop plugin "BossShopPro" to sell an item for 1.00$. It works fine so far but sometimes I observe strange decimal places added to my balance's value in the database. My initial balance is 1020$. When I buy one item after another, I always get the following reproducible values:

1020,00
1019,99
1019,98
1019,97
1019,96
1019,95
1019,94
1019,9300000000001
1019,92
1019,91
1019,90

I'm not sure if this is a problem related to Craftconomy or another plugin in the pipe BossShopPro --> Vault --> Craftconomy --> MariaDB

pavog commented 5 years ago

Thanks for the issue report. I'll look into this in the next days and hopefully find out where this issue comes from.