title: Why is there no ceil(float) in Java?
body: <p>Suppose I would like to round up <code>float</code> to <code>int</code> in <code>Java</code>.<br>
  For instance,</p>
  
  <pre><code>roundUp(0.2) = 1
  roundUp(0.7) = 1
  roundUp(1.3) = 2
  ...
  </code></pre>
  
  <p>I would like to call <code>Math.ceil</code> and <code>Math.round</code> to do that but <code>java.lang.Math</code> does not provide <code>ceil(float)</code>. It provides only <code>ceil(double)</code>. So my <code>float</code> is promoted to <code>double</code> silently, <code>ceil(double)</code> returns <code>double</code> and <code>round(double)</code> returns <code>long</code> while I need to round up <code>float</code> to <code>int</code> (not <code>long</code>).</p>
  
  <p>Now I wonder why <code>java.lang.Math</code> has only <code>ceil(double)</code> and does not have <code>ceil(float)</code>.</p>