title: VB Script Integer division vs Float Division Rounding up
body: <p>Hi Fellow stackoverflowers,</p>
  
  <p>I'm having a problem converting a formula from <code>classic asp</code> <code>VBscript</code> to <code>C# .net</code>
  I need <code>c#</code> to behave similar to the result of the <code>VBScript</code></p>
  
  <p>The formula goes like this</p>
  
  <pre><code>Dim dTravelHours, result
  dTravelHours = 22.7359890666919
  result = (CDbl(dTravelHours)*2 + 2)\8
  </code></pre>
  
  <p>Mathematically the result is  5.9331475 however since I used an integer division instead of Decimal division "/" The result is 5 , I can get this result properly in c# by simply type casting the result to int</p>
  
  <p>however if I used a differently value:</p>
  
  <pre><code>Dim dTravelHours, result
      dTravelHours = 22.7359890666919
      result = (CDbl(dTravelHours)*2 + 2.5)\8
  </code></pre>
  
  <p>the mathematical result is 5.9956475
  and vbScript result is 6</p>
  
  <p>the same with 5.9456475 the <code>vbscript</code> result is 6</p>
  
  <p>How do I replicate the same behavior in <code>C#</code> ?
  I already tried using <code>Math.Floor,</code> <code>Math.Ceiling</code>, <code>Math.Round</code> but still no Good.</p>
  
  <p>Thanks in advance for your answers and suggestions </p>