title: Rails 3. How to explicitly round a number to two decimal places in the model?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/7772859/rails-3-how-do-display-two-decimal-places-in-edit-form">Rails 3. How do display two decimal places in edit form?</a>  </p>
  </blockquote>
  
  
  
  <p>I know I can use sprintf to limit to two decimal places. </p>
  
  <p>When I redisplay the prices in a form or just in a table, sometimes I get 80, instead of 80.00. Wouldn't be better to just store the price with the two decimal places from the very moment the price is entered in the database? That way, whenever it's displayed, it will ALWAYS show the two decimal places. If so, how?</p>