Howdy,
Can somebody please explain why the use of double and long data type produces different results in this situation:
[vba]Dim a As Double
a = 63 * 0.15
Debug.Print IIf(a = Int(a), a, Int(a) + 1)[/vba]
and
[vba]Dim a As Long
a = 63 * 0.15
Debug.Print IIf(a = Int(a), a, Int(a) + 1)[/vba]
kp