How to round a float in the model so you don't have to round it elsewhere (it is just saved in rounded form)
<p>I was wondering if there was a way to round a number in the model, so that I would not have to round the number to my specified decimal places anywhere else but there.</p>

<p>I looked at these two posts, but neither answered my question:</p>

<ul>
<li><a href="https://stackoverflow.com/questions/7772436/rails-3-how-to-explicitly-round-a-number-to-two-decimal-places-in-the-model">Rails 3. How to explicitly round a number to two decimal places in
the model? [duplicate]</a></li>
<li><a href="https://stackoverflow.com/questions/7772859/rails-3-how-to-display-two-decimal-places-in-edit-form">Rails 3. How to display two decimal    places in edit form?</a></li>
</ul>

<p>The first being a supposed duplicate of the second, but in my opinion it is not. Regardless, neither answered my question clearly.</p>

<p>Is there any possible way of rounding <strong>floats</strong> once in the model?</p>