title: How to calculate percentages with rounding
body: <p>I have the following code:</p>
  
  <pre><code>def self.percent
    (Order.revenue.to_f / Order.goal.to_f) * 100.to_f
  end
  </code></pre>
  
  <p>And the output is hideous:</p>
  
  <blockquote>
    <p>0.47939999999999994% Funded</p>
  </blockquote>
  
  <ol>
  <li><p>How can I make it so that it doesn't have the <code>0</code> in front i.e. <code>0.1..</code>, and only starts calculating at <code>1%</code>, <code>2%</code>, ...?</p></li>
  <li><p>How do I get rid of the <code>0.43234324</code>? I'd like it to display nice round numbers i.e. <code>1%</code>, <code>2%</code>, and so on.</p></li>
  </ol>