What's a java equivalent for std::round(double)?
<p>In cpp file I have std::round(double)</p>

<p>Please can I know the equivalent code in Java</p>

<p><strong>Edit</strong>: I am already using <code>java.lang.Math.round(double)</code> and getting match in 99% cases. But in some places iam getting mismatch. For example:</p>

<ul>
<li><code>std::round(4816.5058) = 4816</code> and <code>Math.round(4816.5058) = 4817</code></li>
<li><code>std::round(4466.49996) = 4467</code> and <code>Math.round(4466.49997) = 4466</code></li>
</ul>
