开发者

Ruby on Rails: how do I format money for my view? [duplicate]

This question already has answers here: 开发者_开发百科 What is the best method of handling currency/money? (13 answers) Closed 8 years ago.

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 %>


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜