3

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 %>
New Alexandria
  • 6,566
  • 4
  • 53
  • 72
NullVoxPopuli
  • 56,640
  • 72
  • 202
  • 343

1 Answers1

6

Think this covers it: What is the best method of handling currency/money?.

Community
  • 1
  • 1
Rushyo
  • 7,267
  • 4
  • 33
  • 42