money2
  • Overview
  • Common Currencies
  • Creating a Currency
  • Registering a Currency
  • Parsing
  • Find a currency
  • Default format
  • Symbols
  • Separators
    • Decimal Separator
    • Group Separator
  • Creating Money
    • Money.parse
    • Currency.parse
    • Money.from
    • Currencies.parse
    • decimalDigits
  • Formatting
    • Formatting Patterns
  • Storing and Send
  • Exchange Rates
  • Comparison
  • Currency Predicates
  • Value Sign Predicates
  • Arithmetic Operations
  • Allocation
  • Money encoding/decoding
Powered by GitBook
On this page

Was this helpful?

Separators

Monetary amounts often use separators to format numbers in order to make them easier to read.

The two standard separators are the decimal separator and the group separator.

The Money2 package allows you to control what decimal and group separator are used for each currency.

NOTE:

regardless of the separators you choose for you Currency format patterns MUST always use the default group (,) and decimal (.) separators.

This ensures that we can share patterns across currencies.

e.g.

'S#,##0.00'
PreviousSymbolsNextDecimal Separator

Last updated 29 days ago

Was this helpful?