Thanks for the info. I am trying to do it with Mod, but it seems to be rounding the floating point. e.g. if I put Remainder = 12.6 Mod 5 then answer is rounding it to 3 and it should be 2.6 according to Microsoft. I always think of it as there are 2 fives in 12.6 which equals to 10, 12.6 - 10 with a remainder of 2.6 left over. Is this a correct assumption? Microsoft has this long calculation to explain this. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vaoprmod.asp Someone posted that there is a difference between how Visual Basic and .net perform the Mod calculation. I'm still trying to figure out how the mod thing would work within my program. Let's say there is $14.85 leftover I want to give back $5, $2, $1, , $0.25, $0.10, and $0.05 in change or bills So I assume first of all that I would need an If statement to check if the amount is above 5 dollars. i.e. Private Sub Command1_Click() Dim total As Double Dim amount As Double total = 14.85 If total > 5 Then picMain.Print total amount = total Mod 5 picMain.Print amount End If End Sub Which in theory should give me a leftover of $4.85, but when I run this it gives me 0. I can't figure out why it's not giving me at least the 4.85 or rounding it to 5 Another thing I am struggling with is what kind of code would be able to tell me how many 5's I have extracted from the 14.85? If I can figure out these two problem, then I can pretty much figure out how to do the rest. Thanks for all the help