title: C# Convert string to int (with rounding)
body: <p>What's the easiest way to get a string with the value of "76.10" into an int rounded to 76?</p>
  
  <p>I've tried a few different ways using Convert.ToInt32 and Decimal but I can't seem to get it right?</p>
  
  <p>Edit: Here's the code Jon helped me with:</p>
  
  <pre><code>            decimal t = Math.Round(decimal.Parse(info.HDDStatus));
              int v = (int)t;
  </code></pre>