For easier use, you may even exclude decimal places from the amount a player can bet - for example, if a player has 150,26 coins in the bank, the maximum bet he can place is 150. Later, if he wins, you calculate it as usual - if win multiplier was 2.45, then 150*2.45 + 0.26 we had left, equals 367.76 (maximum amount for the player to use in next round will be 367).
This way it won`t be too complicated for the players to follow, and you`ll keep better accuracy (two decimal places). I don`t know, only a suggestion :P
p.s. This is similar to how AoC in-game resource/hp system works The game keeps track of everything as float point numbers, but shows us only rounded (integer) values. That`s why sometimes a hit, for example, can take 5, and next time 6 health points - it actually does 5.5 damage, but the game shows us only rounded value (remembering fractional part of a floating point number for the next calculation). This way it`s both simple, and accurate.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.