title: Float numbers in ERB/Rails
body: <p>I'm pretty new to Rails, I'm passing 2 variables to a view, in my controller have them defined like </p>
  
  <pre><code>@correct = 5
  @total = 40
  </code></pre>
  
  <p>in my view I'm trying to mark them up like:</p>
  
  <pre><code>Score = &lt;%=@score%&gt;/&lt;%=@total%&gt; = &lt;%=(@score/@total)%&gt;
  </code></pre>
  
  <p>It outputs 0 for the division. Do I need to explicitly define that equation to output a float or something? How do I get it to output 0.125 instead of 0</p>
  
  <p>Thanks guys</p>