Decimal Separator

Numbers use a decimal separator to separate the integer and factional component of a number.

In the English speaking world the period (.) is used as the decimal separator, however in large parts of the world the comma (,) is used as the decimal separator.


  • $USD1,000.99 (one thousand dollars and 99 cents)

  • €EUR1.000,99 (one thousand euro and 99 cents)

Money2 use the English convention by default. To switch to the Euro style convention set the invertSeparators argument to true when creating a currency.

You will also need to provide an appropriate pattern.

import 'package:money2/money2.dart';
Currency euro = Currency.create('EUR', 2, symbol: '€', invertSeparators: true, pattern: 'S0.000,00');

Last updated