C# - Rounding Down to Nearest Integer
<p>I have a C# app that is calculating some numbers. I need to round down.</p>

<pre><code>var increment = 1.25;
var result = 50.45 - 23.70;    // equals 26.75
int interval = difference / increment; // result is 21.4. However, I just want 21
</code></pre>

<p>I have to get the <code>interval</code> to an <code>int</code>. At the same time, I cannot just use <code>Convert.ToInt32</code> because of its <a href="https://msdn.microsoft.com/en-us/library/ffdk7eyz.aspx" rel="noreferrer">rounding behavior</a>. I always want the lowest whole number. However, I'm not sure how.</p>