forked from nkronlage/JavaScripture
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnumberformat.jsdoc
More file actions
63 lines (51 loc) · 1.58 KB
/
numberformat.jsdoc
File metadata and controls
63 lines (51 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
NumberFormat : Object
Spec:
http://www.ecma-international.org/ecma-402/1.0/#sec-11
----
NumberFormat([locales : Array<String>, [options : Object]]) : NumberFormat
Same as %%#new_NumberFormat|**new Intl.NumberFormat(locales, options)**%%.
----
new NumberFormat([locales : Array<String>, [options : { \
currency : String /* */, \
currencyDisplay : String /* */, \
localeMatcher : String /* One of **'basic'** or **'best fit'**. */, \
maximumFractionDigits : Number /* */, \
maximumSignificantDigits : Number /* */, \
minimumFractionDigits : Number /* */, \
minimumIntegerDigits : Number /* */, \
minimumSignificantDigits : Number /* */, \
style : String /* */, \
useGrouping : Boolean /* */, \
}]]) : NumberFormat
<example>
</example>
----
instance.format(number : Number) : String
<example>
</example>
----
prototype.resolvedOptions() : { \
currency : String /* */, \
currencyDisplay : String /* */, \
locale : String /* */, \
maximumFractionDigits : Number /* */, \
maximumSignificantDigits : Number /* */, \
minimumFractionDigits : Number /* */, \
minimumIntegerDigits : Number /* */, \
minimumSignificantDigits : Number /* */, \
numberingSystem : String /* */, \
style : String /* */, \
useGrouping : Boolean /* */, \
}
<example>
var options = Intl.NumberFormat().resolvedOptions();
for (var property in options) {
console.log(property + ': ' + options[property]);
}
</example>
----
supportedLocalesOf(locales : Array<String>, [options : { \
localeMatcher : String /* One of **'basic'** or **'best fit'**. */ \
}]) : Array<String>
<example>
</example>