views:

28

answers:

1

This is what I have so far.

how do I ensure that i'll have two decimals? and that it rounds correctly?

$<%=h sale_item.value %>
A: 

Think this covers it: http://stackoverflow.com/questions/1019939/ruby-on-rails-best-method-of-handling-currency-money.

Rushyo
Just for reference: I googled "ruby currency" ...
Rushyo