 <p>Perhaps use integer division similar to:</p> <pre><code>void LevelMod() { // I assume the level variables are integrals, so perform an integer division if (GV.TotalNumberValue / 200 &gt; GV.TotalLevel) { GV.TotalLevel = GV.TotalNumberValue / 200; lblLevel.Text = string.Format("{0}{1}", GV.LevelPrefix, GV.TotalLevel); } } </code></pre> <p>Essentially, your <code>TotalLevel</code> is always <code>TotalNumberValue / 200</code>. This assumes that that <code>GV.TotalNumberValue</code> is an integral type <a href="http://msdn.microsoft.com/en-us/library/aa691373(v=vs.71).aspx" rel="nofollow">which always rounds the result towards zero.</a></p>