title: Increasing the value by 1 if it has decimal place?
body: <p>My scenario is that if </p>
  
  <pre><code>47/15= 3.13333
  </code></pre>
  
  <p>i want to convert it into 4, if the result has decimal i want to increase the result by 1, right now i am doing this like</p>
  
  <pre><code>        float res = ((float)(62-15) / 15);
          if (res.ToString().Contains("."))
          {
               string digit=res.ToString().Substring(0, res.ToString().IndexOf('.'));
               int incrementDigit=Convert.ToInt16(k) + 1;
  
  
          }
  </code></pre>
  
  <p>I want to know is there any shortcut way or built in function in c# so that i can do this fast without implementing string functions.</p>
  
  <p>Thanks a lot.</p>