craftconomy3 icon indicating copy to clipboard operation
craftconomy3 copied to clipboard

Strange decimal places

Open Androkai opened this issue 5 years ago • 1 comments

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

Androkai avatar Oct 09 '19 12:10 Androkai

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

pavog avatar Oct 10 '19 11:10 pavog