All, I'm intermediate for VB6. I want to get remainder from divided two doubles. I used ,
Dim a As Double, b As Double, result As Double
b = 8333.33
a = 58333.31
result = a - (b * Fix(a / b))
result should be 0. But it is not. a/b =7 and no remain. So Fix(a / b) should be 7. But Fix(a / b)=6, Why?