I am writing a program about giving change. But I am having issues with getting remainders for decimal numbers.
For instance I am giving $46.63 change
I want to know how many $20.00 bills it has, I would have to divide it by 20.
46.63 / 20 = 2.3315
My question is how can I get the .3315?
The problem is that % does not work with double, I tried it with integer, but I just can't get the cents.