|
-
May 8th, 2013, 11:21 PM
#1
Thread Starter
New Member
Math.Round not rounding to correct amount
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|