mhluska / blackjack-simulator

🃏 Realistic blackjack simulator (practice card counting using Hi-Lo and calculate EV for any table conditions)
https://mhluska.github.io/blackjack-atlas
MIT License
51 stars 14 forks source link

Consider Number.MAX_SAFE_INTEGER #37

Open mhluska opened 3 years ago

mhluska commented 3 years ago

Are there situations where we lose precision due to large integers? Looks like the max safe integer is 9,007,199,254,740,991. One possible area we might run into trouble is the bankroll variance value.