RUBY上的Rails编号_TO_Currency如何在没有单位的情况下执行[无符号,$或其他]



如何使用助手number_to_currency格式化我的号码,但没有货币符号($,r $等)?
例如:

$ 500,78  -> Not what i want
  500,78  -> Format i desire

尝试将其与:unit选项设置为空字符串。

number_to_currency(1234567890.50, :unit => "")

相关内容

最新更新