如何使用助手number_to_currency
格式化我的号码,但没有货币符号($,r $等)?
例如:
$ 500,78 -> Not what i want
500,78 -> Format i desire
尝试将其与:unit
选项设置为空字符串。
number_to_currency(1234567890.50, :unit => "")