Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,12 @@ m = Money.from_cents('123', :gbp) # => #<Money fractional:123 currency:GBP>
m.format(symbol: m.currency.to_s + ' ') # => "GBP 1.23"
```

If you would like to customize currency symbols to avoid ambiguity between currencies, you can:

```ruby
Money::Currency.table[:hkd][:symbol] = 'HK$'
```

## Rounding

By default, `Money` objects are rounded to the nearest cent and the additional precision is not preserved:
Expand Down