Converts a number into a percent string using a locale-based format. Returns String.
Parameter | Type | Description |
---|---|---|
Number | Number | Number to format |
options | Number|Object |
Number: Number of decimal places to include in the returned string. Object: See below. |
options object properties:
Properties | Type | Description |
---|---|---|
fractionDigits | Number | The number of decimal places to include in the returned string. |
countryCode | String | Two letter IETF/ISO 639 code for country/region. Optional. Defaults to device's current locale. |
0 Comments