![]() ![]() The minimum number of fraction digits to use. Possible values are from 1 to 21 the default is 1. A value with a smaller number of integer digits than this number will be left-padded with zeros (to the specified length) when formatted. The minimum number of integer digits to use. The following properties are also supported by Intl.PluralRules. The unit formatting style to use in unit formatting. There is no default value if the style is "unit", the unit property must be provided. Pairs of simple units can be concatenated with "-per-" to make a compound unit. A subset of units from the full list was selected for use in ECMAScript. The unit to use in unit formatting, Possible values are core unit identifiers, defined in UTS #35, Part 2, Section 6. Possible values are "standard" and "accounting" the default is "standard". In many locales, accounting format means to wrap the number with parentheses instead of appending a minus sign. Use a localized currency name such as "dollar". Use a narrow format symbol ("$100" rather than "US$100"). Use a localized currency symbol such as €. How to display the currency in currency formatting. There is no default value if the style is "currency", the currency property must be provided. Possible values are the ISO 4217 currency codes, such as "USD" for the US dollar, "EUR" for the euro, or "CNY" for the Chinese RMB - see the Current currency & funds code list. The currency to use in currency formatting. Style optionsĭepending on the style used, some of them may be ignored, and others may be required: style This option can also be set through the nu Unicode extension key if both are provided, this options property takes precedence. For a list of supported numbering system types, see (). The numbering system to use for number formatting, such as "arab", "hans", "mathsans", and so on. Possible values are "lookup" and "best fit" the default is "best fit".įor information about this option, see Locale identification and negotiation. For ease of reading, the property list is broken into sections based on their purposes, including locale options, style options, digit options, and other options. When both are set, the options property takes precedence. This key can also be set with options (as listed below). The following Unicode extension key is allowed: nu For the general form and interpretation of the locales argument, see the parameter description on the Intl main page. ()Ī string with a BCP 47 language tag or an Intl.Locale instance, or an array of such locale identifiers. ![]() Object.prototype._lookupSetter_() Deprecated.Object.prototype._lookupGetter_() Deprecated.Object.prototype._defineGetter_() Deprecated. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |