title: Java Round up Any Number
body: <p>I can't seem to find the answer I'm looking for regarding a simple question: how do I round up any number to the nearest <code>int</code>?</p>
  
  <p>For example, whenever the number is 0.2, 0.7, 0.2222, 0.4324, 0.99999 I would want the outcome to be 1.</p>
  
  <p>So far I have</p>
  
  <pre><code>int b = (int) Math.ceil(a / 100);
  </code></pre>
  
  <p>It doesn't seem to be doing the job, though.</p>