Please refer to the following - does anyone know why this is not rounding up the second decimal place? The correct result shoudl be 2059.43.
Dim tempVFD, amount, exch As Double
amount = 2025
exch = 1.017
TempVFD = amount * exch ' returns 2059.4249999999997
tempVFD = Round(tempVFD, 2) ' returns 2059.42
MsgBox(test.ToString("0.00"))
What am I missing?
Thanks in advance
Dim tempVFD, amount, exch As Double
amount = 2025
exch = 1.017
TempVFD = amount * exch ' returns 2059.4249999999997
tempVFD = Round(tempVFD, 2) ' returns 2059.42
MsgBox(test.ToString("0.00"))
What am I missing?
Thanks in advance