Something was causing unexpected results on my company long ago, and I found this problem:
Dim k As Double
Dim r As Integer
k = 182.5
r = Round(k,0)
The result of r is 182, this caused problems on my company and now i have to fix it.
The thing is that i observed this:
Dim k As Double
Dim r As Integer
k = 186.5
r = Round(k,0)
r = 187
When the unities of the integer part of the double are bigger than five, Round does what i expect, but it doesn't for unities <=5.
How can i solve this problem? Is there another function to get the right rounding?