π
π
π
π
money2
Searchβ¦
π
π
π
π
money2
Overview
Common Currencies
Creating a Currency
Registering a Currency
Parsing
Find a currency
Default format
Symbols
Separators
Creating Money
Formatting
Storing and Send
Exchange Rates
Comparison
Currency Predicates
Value Sign Predicates
Arithmetic Operations
Allocation
Money encoding/decoding
Powered By
GitBook
Symbols
β
A number of currency have different symbols, you can specify the symbol when creating the currency.
The Common Currencies have the appropriate symbol configured for each currency.
1
import
'package:money2/money2.dart'
;
2
β
3
// Create a currency for Japan's yen with the correct symbol
4
Currency
jpy
=
Currency
.
create
(
'JPY'
,
0
,
symbol
:
'Β₯'
);
5
Currency
euro
=
Currency
.
create
(
'EUR'
,
2
,
symbol
:
'β¬'
);
Copied!
Previous
Default format
Next
Separators
Last modified
5mo ago
Copy link