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,951
  • 4
  • 57
  • 77
NullVoxPopuli
  • 61,906
  • 73
  • 206
  • 352

1 Answers1

6

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

Community
  • 1
  • 1
Rushyo
  • 7,495
  • 4
  • 35
  • 42