A class encapsulating a currency, as defined by ISO 4217. A
Currency object can be created given a
Locale or given an ISO 4217 code. Once created, the
Currency object can return various data necessary to its proper display:
- A display symbol, for a specific locale
- The number of fraction digits to display
- A rounding increment
The
DecimalFormat class uses these data to display currencies.
Note: This class deliberately resembles java.util.Currency but it has a completely independent implementation, and adds features not present in the JDK.
@author Alan Liu
@stable ICU 2.2