title: C#: How do I do simple math, with rounding, on integers?
body: <p>i want the result of an equation rounded to the nearest integer.
  e.g. </p>
  
  <pre><code>137 * (3/4) = 103
  </code></pre>
  
  <p>Consider the following incorrect code. </p>
  
  <pre><code>int width1 = 4;
  int height1 = 3;
  
  int width2 = 137;
  int height2 = width2 * (height1 / width1);
  </code></pre>
  
  <p>What is the proper way to perform "integer" math in C#?</p>
  
  <p>Do i really have to do:</p>
  
  <pre><code>int height2 = (int)Math.Round(
        (float)width2 * ((float)height1 / (float)width1)
     );
  </code></pre>