Java Reference
In-Depth Information
Returns the default number of fraction digits used with this
currency. For example, the British pound would have a value
of 2 because two digits usually follow the decimal point for
pence (such as in £18.29), whereas the Japanese yen would
have zero because yen values typically have no fractional part
(such as ¥1200). Some "currencies" are not really currencies
at all ( IMF Special Drawing Rights, for example), and they re-
turn 1.
public String getCurrencyCode()
Returns the ISO 4217 currency code of this currency.
Exercise 24.2 : Select six different locales and six different currencies,
and print a table showing the currency symbol for each currency in each
locale.
 
Search WWH ::




Custom Search