how to round up a double value to nearest integer in c#
<p>I am developing a windows forms application.I need to do some conversions and round up the values.I need to round up the double value to nearest integer.For example 1.4 should be 1 and 1.6 should be 2 after applying round up.Please refer my code below.</p>

<pre><code>double d = 51386933935386.5;
uint x = (uint)Math.Round(d, 0, MidpointRounding.AwayFromZero);
</code></pre>

<blockquote>
  <p>After round up I need the value value = 51386933935386.But I am getting some different value.</p>
</blockquote>