title: Int division in scala
body: <p>I have two <code>Int</code> values in Scala.</p>
  
  <pre><code>scala&gt; val a = 3
  a: Int = 3
  
  scala&gt; val b = 5
  b: Int = 5
  </code></pre>
  
  <p>Now, I want to divide them and get Float. With as little boilerplate as possible.</p>
  
  <p>If I do <code>a/b</code>, I get</p>
  
  <pre><code>scala&gt; a/b
  res0: Int = 0
  </code></pre>
  
  <p>I cannot do simple Java <code>(float)</code>.</p>
  
  <pre><code>scala&gt; ((Float)a)/b
  &lt;console&gt;:9: error: value a is not a member of object Float
                ((Float)a)/b
                        ^
  </code></pre>
  
  <p>What should I do?</p>