I am working on a financial software, in it I would like to offer an option of paying for an item in 3,6 or 12 instalments. I would be deducting each instalment amount via there Credit Card every month.
for example if I have an item that costs $700, and I want to make 12 instalments. each instalment comes out to be, 700/12 = 58.3333333333.
Now If i use 58.33, 58.33*12 = 699.96.
If i use 58.34*12 = 700.08
I cannot store the amount 58.3333333333 becuase when using payment gateways they require the amount to be mentioned nearest 2 decimal places. So I am confused on how to solve this problem. any solution, or recommendation would be highly appreciated.