LoginSignup
8
8

More than 5 years have passed since last update.

円の金額表記で3桁毎にカンマを入れる

Posted at
price.rb
number_to_currency(9800*3, :locale=>'ja')
ja.yml
  # 円表記
  number:
      currency:
        format:
          unit: "円"
          format: "%n%u"
          negative_format: "-%n%u"
          precision: 0
8
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
8