| Property | Defined by | ||
|---|---|---|---|
| currencyCode : String
Gets the ISO 4217 currency code of this currency.
| Currency | ||
| decimals : int
Gets the default number of fraction digits used with this currency.
| Currency | ||
| symbol : String
Gets the symbol of this currency for the default locale.
| Currency | ||
| Method | Defined by | ||
|---|---|---|---|
|
Currency(currencyCode:String, decimals:int, symbol:String)
| Currency | ||
|
getCountryInstance(country:String):Currency
[static]
Returns the
Currency instance for the given country code. | Currency | ||
|
getInstance(currencyCode:String):Currency
[static]
Returns the
Currency instance for the given currency code. | Currency | ||
|
toString():String
Returns the ISO 4217 currency code of this currency.
| Currency | ||
| Constant | Defined by | ||
|---|---|---|---|
| AUD : Object [static]
| Currency | ||
| EUR : Object [static]
| Currency | ||
| GBP : Object [static]
| Currency | ||
| HKD : Object [static]
| Currency | ||
| NZD : Object [static]
| Currency | ||
| SGD : Object [static]
| Currency | ||
| TWD : Object [static]
| Currency | ||
| USD : Object [static]
| Currency | ||
| currencyCode | property |
public var currencyCode:StringGets the ISO 4217 currency code of this currency.
| decimals | property |
public var decimals:intGets the default number of fraction digits used with this currency. For example, the default number of fraction digits for the Euro is 2, while for the Japanese Yen it's 0. In the case of pseudo-currencies, such as IMF Special Drawing Rights, -1 is returned.
| symbol | property |
public var symbol:StringGets the symbol of this currency for the default locale. For example, for the US Dollar, the symbol is "$" if the default locale is the US, while for other locales it may be "US$". If no symbol can be determined, the ISO 4217 currency code is returned.
| Currency | () | constructor |
public function Currency(currencyCode:String, decimals:int, symbol:String)Parameters
currencyCode:String |
|
decimals:int |
|
symbol:String |
| getCountryInstance | () | method |
public static function getCountryInstance(country:String):Currency
Returns the Currency instance for the given country code.
country:String — the ISO 3166 code of the country
|
Currency —
the Currency instance for the given country code
|
| getInstance | () | method |
public static function getInstance(currencyCode:String):Currency
Returns the Currency instance for the given currency code.
currencyCode:String — the ISO 4217 code of the currency
|
Currency —
the Currency instance for the given currency code
|
| toString | () | method |
public function toString():StringReturns the ISO 4217 currency code of this currency.
ReturnsString — the ISO 4217 currency code of this currency
|
| AUD | constant |
public static const AUD:Object
| EUR | constant |
public static const EUR:Object
| GBP | constant |
public static const GBP:Object
| HKD | constant |
public static const HKD:Object
| NZD | constant |
public static const NZD:Object
| SGD | constant |
public static const SGD:Object
| TWD | constant |
public static const TWD:Object
| USD | constant |
public static const USD:Object