Formats the provided number as a locale-based currency string. Returns String.
Parameter | Type | Description |
---|---|---|
amount | Number | Number to be formatted as currency. |
options | Number|Object |
Number: Number of decimal places to include in the returned string. Object: Additional formatting options. See below. |
options object properties:
Property | Type | Description |
---|---|---|
fractionDigits | Number | Number of places to include in the returned string. |
countryCode | String | Two letter IETF/ISO 639 code for a country/region. Optional. Defaults to current device locale. |
0 Comments