I am trying to decipher a method to determine how many chips I will place on table based on the bet amount which will be ‘bet index’ I saw something similar and tried to use it for how many of each chips will be used for each bet.
For example I have 25, 100, and 500 chip and bet amount of $250 should give me 2 ‘$100’ chips and 2 ‘$25’ chips. So I tried unsuccessfull like this:
bet_index=250
chip_500=math.floor(bet_index/500)
bet_index=math.floor(500%bet_index)
chip_100=math.floor(bet_index/100)
bet_index=math.floor(100%bet_index)
chip_25=math.floor(bet_index/25)
bet_index=math.floor(25%bet_index)
but my result will be zero. Would anyone know how to use the modulo correctly?