title: SQL Server 'ROUND' vs C# 'Math.Round'
body: <p>I have following <code>SQL Server</code> statement, I want to convert this into <code>c#</code>. I know there is something called <code>Math.Round</code> in <code>C#</code>. I have tried but <code>C#</code> returns the same results c# returns an int back. For details please check the Test &amp; results below:</p>
  
  <p><strong>SQL SERVER</strong></p>
  
  <pre><code>Select ROUND(SUM(someValue) / 60,0)  
  </code></pre>
  
  <p><strong>C#</strong></p>
  
  <pre><code>var alpha = Math.Round(someValue / 60, 0);
  </code></pre>
  
  <p><strong>Tests &amp; Result</strong></p>
  
  <pre><code>select ROUND(150.75, 0)
  -- Result = 151.00
  
  var alpha = Math.Round(150.75, 0);
  // Result = 151
  </code></pre>
  
  <p>Can anyone please suggest me why its not putting .00 in the end. In real values will there be any difference. I am looking ro replace SQL with C#.</p>
  
  <p>Thanks</p>