VB6 Round(x,0) issue
<p>Something was causing unexpected results on my company long ago, and I found this problem:</p>

<pre><code>Dim k As Double
Dim r As Integer
k = 182.5
r = Round(k,0)
</code></pre>

<p>The result of r is 182, this caused problems on my company and now i have to fix it. </p>

<p>The thing is that i observed this:</p>

<pre><code>Dim k As Double
Dim r As Integer
k = 186.5
r = Round(k,0)
</code></pre>

<p>r = 187</p>

<p>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 &lt;=5.</p>

<p>How can i solve this problem? Is there another function to get the right rounding?</p>