Settings

Code Theme

Theme for code blocks: OceanicNext/Github

Theme

Page theme

Toggle to hide or show Browser Details/Support

Change the color of the accent (default: purple)

Language for page. Press Confirm to reload page with selected language

Confirm language

Intl.NumberFormat Unit

Browser support

Full support

Available in Chrome from version 24 Chrome
Available in Edge from version 12 Edge
Available in Firefox from version 29 Firefox
Available in Opera from version 15 Opera
Available in Safari from version 10 Safari
Available in Chrome Android from version 25 Chrome Android
Available in Firefox for Android from version 56 Firefox for Android
Available in Opera Android from version 14 Opera Android
Available in Safari on iOS from version 10 Safari on iOS
Available in Samsung Internet from version 1.5 Samsung Internet
Available in WebView Android from version 4.4 WebView Android
Available in WebView on iOS from version 10 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 0.12.0 Node.js

Input


ko

Alternativ use

Intl.NumberFormat can also be used from Number.prototype.toLocaleString()
const number = 123456.789
number.toLocaleString("ko")
123,456.789°

Output


unitDisplay

Browser support

Available in Chrome from version 77 Chrome
Available in Edge from version 79 Edge
Available in Firefox from version 78 Firefox
Available in Opera from version 64 Opera
Available in Safari from version 14.1 Safari
Available in Chrome Android from version 77 Chrome Android
Available in Firefox for Android from version 79 Firefox for Android
Available in Opera Android from version 55 Opera Android
Available in Safari on iOS from version 14.5 Safari on iOS
Available in Samsung Internet from version 12.0 Samsung Internet
Available in WebView Android from version 77 WebView Android
Available in WebView on iOS from version 14.5 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 12.11.0 Node.js
{
style: "unit",
unit: "degree",
unitDisplay: "long"
}
123,456.789도
{
style: "unit",
unit: "degree",
unitDisplay: "short"
}
123,456.789°
{
style: "unit",
unit: "degree",
unitDisplay: "narrow"
}
123,456.789°

compactDisplay

Browser support

Available in Chrome from version 77 Chrome
Available in Edge from version 79 Edge
Available in Firefox from version 78 Firefox
Available in Opera from version 64 Opera
Available in Safari from version 14.1 Safari
Available in Chrome Android from version 77 Chrome Android
Available in Firefox for Android from version 79 Firefox for Android
Available in Opera Android from version 55 Opera Android
Available in Safari on iOS from version 14.5 Safari on iOS
Available in Samsung Internet from version 12.0 Samsung Internet
Available in WebView Android from version 77 WebView Android
Available in WebView on iOS from version 14.5 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 12.11.0 Node.js
{
style: "unit",
unit: "degree",
compactDisplay: "short"
}
123,456.789°
{
style: "unit",
unit: "degree",
compactDisplay: "long"
}
123,456.789°

notation

Browser support

Available in Chrome from version 77 Chrome
Available in Edge from version 79 Edge
Available in Firefox from version 78 Firefox
Available in Opera from version 64 Opera
Available in Safari from version 14.1 Safari
Available in Chrome Android from version 77 Chrome Android
Available in Firefox for Android from version 79 Firefox for Android
Available in Opera Android from version 55 Opera Android
Available in Safari on iOS from version 14.5 Safari on iOS
Available in Samsung Internet from version 12.0 Samsung Internet
Available in WebView Android from version 77 WebView Android
Available in WebView on iOS from version 14.5 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 12.11.0 Node.js
{
style: "unit",
unit: "degree",
notation: "standard"
}
123,456.789°
{
style: "unit",
unit: "degree",
notation: "scientific"
}
1.235E5°
{
style: "unit",
unit: "degree",
notation: "engineering"
}
123.457E3°
{
style: "unit",
unit: "degree",
notation: "compact"
}
12만°

signDisplay

Browser support

Available in Chrome from version 77 Chrome
Available in Edge from version 79 Edge
Available in Firefox from version 78 Firefox
Available in Opera from version 64 Opera
Available in Safari from version 14.1 Safari
Available in Chrome Android from version 77 Chrome Android
Available in Firefox for Android from version 79 Firefox for Android
Available in Opera Android from version 55 Opera Android
Available in Safari on iOS from version 14.5 Safari on iOS
Available in Samsung Internet from version 12.0 Samsung Internet
Available in WebView Android from version 77 WebView Android
Available in WebView on iOS from version 14.5 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 12.11.0 Node.js
{
style: "unit",
unit: "degree",
signDisplay: "auto"
}
123,456.789°
{
style: "unit",
unit: "degree",
signDisplay: "never"
}
123,456.789°
{
style: "unit",
unit: "degree",
signDisplay: "always"
}
+123,456.789°
{
style: "unit",
unit: "degree",
signDisplay: "exceptZero"
}
+123,456.789°

useGrouping

Browser support

Available in Chrome from version 24 Chrome
Available in Edge from version 12 Edge
Available in Firefox from version 29 Firefox
Available in Opera from version 15 Opera
Available in Safari from version 10 Safari
Available in Chrome Android from version 25 Chrome Android
Available in Firefox for Android from version 56 Firefox for Android
Available in Opera Android from version 14 Opera Android
Available in Safari on iOS from version 10 Safari on iOS
Available in Samsung Internet from version 1.5 Samsung Internet
Available in WebView Android from version 4.4 WebView Android
Available in WebView on iOS from version 10 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 13.0.0 Node.js
{
style: "unit",
unit: "degree",
useGrouping: true
}
123,456.789°
{
style: "unit",
unit: "degree",
useGrouping: false
}
123456.789°

minimumIntegerDigits

Browser support

Available in Chrome from version 24 Chrome
Available in Edge from version 12 Edge
Available in Firefox from version 29 Firefox
Available in Opera from version 15 Opera
Available in Safari from version 10 Safari
Available in Chrome Android from version 25 Chrome Android
Available in Firefox for Android from version 56 Firefox for Android
Available in Opera Android from version 14 Opera Android
Available in Safari on iOS from version 10 Safari on iOS
Available in Samsung Internet from version 1.5 Samsung Internet
Available in WebView Android from version 4.4 WebView Android
Available in WebView on iOS from version 10 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 0.12.0 Node.js
{
style: "unit",
unit: "degree",
minimumIntegerDigits: 1
}
123,456.789°
{
style: "unit",
unit: "degree",
minimumIntegerDigits: 2
}
123,456.789°
{
style: "unit",
unit: "degree",
minimumIntegerDigits: 3
}
123,456.789°
{
style: "unit",
unit: "degree",
minimumIntegerDigits: 4
}
123,456.789°
{
style: "unit",
unit: "degree",
minimumIntegerDigits: 5
}
123,456.789°

minimumFractionDigits

Browser support

Available in Chrome from version 24 Chrome
Available in Edge from version 12 Edge
Available in Firefox from version 29 Firefox
Available in Opera from version 15 Opera
Available in Safari from version 10 Safari
Available in Chrome Android from version 25 Chrome Android
Available in Firefox for Android from version 56 Firefox for Android
Available in Opera Android from version 14 Opera Android
Available in Safari on iOS from version 10 Safari on iOS
Available in Samsung Internet from version 1.5 Samsung Internet
Available in WebView Android from version 4.4 WebView Android
Available in WebView on iOS from version 10 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 0.12.0 Node.js
{
style: "unit",
unit: "degree",
minimumFractionDigits: 1
}
123,456.789°
{
style: "unit",
unit: "degree",
minimumFractionDigits: 2
}
123,456.789°
{
style: "unit",
unit: "degree",
minimumFractionDigits: 3
}
123,456.789°
{
style: "unit",
unit: "degree",
minimumFractionDigits: 4
}
123,456.7890°
{
style: "unit",
unit: "degree",
minimumFractionDigits: 5
}
123,456.78900°

maximumFractionDigits

Browser support

Available in Chrome from version 24 Chrome
Available in Edge from version 12 Edge
Available in Firefox from version 29 Firefox
Available in Opera from version 15 Opera
Available in Safari from version 10 Safari
Available in Chrome Android from version 25 Chrome Android
Available in Firefox for Android from version 56 Firefox for Android
Available in Opera Android from version 14 Opera Android
Available in Safari on iOS from version 10 Safari on iOS
Available in Samsung Internet from version 1.5 Samsung Internet
Available in WebView Android from version 4.4 WebView Android
Available in WebView on iOS from version 10 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 0.12.0 Node.js
{
style: "unit",
unit: "degree",
maximumFractionDigits: 1
}
123,456.8°
{
style: "unit",
unit: "degree",
maximumFractionDigits: 2
}
123,456.79°
{
style: "unit",
unit: "degree",
maximumFractionDigits: 3
}
123,456.789°
{
style: "unit",
unit: "degree",
maximumFractionDigits: 4
}
123,456.789°
{
style: "unit",
unit: "degree",
maximumFractionDigits: 5
}
123,456.789°

minimumSignificantDigits

Browser support

Available in Chrome from version 24 Chrome
Available in Edge from version 12 Edge
Available in Firefox from version 29 Firefox
Available in Opera from version 15 Opera
Available in Safari from version 10 Safari
Available in Chrome Android from version 25 Chrome Android
Available in Firefox for Android from version 56 Firefox for Android
Available in Opera Android from version 14 Opera Android
Available in Safari on iOS from version 10 Safari on iOS
Available in Samsung Internet from version 1.5 Samsung Internet
Available in WebView Android from version 4.4 WebView Android
Available in WebView on iOS from version 10 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 0.12.0 Node.js
{
style: "unit",
unit: "degree",
minimumSignificantDigits: 1
}
123,456.789°
{
style: "unit",
unit: "degree",
minimumSignificantDigits: 2
}
123,456.789°
{
style: "unit",
unit: "degree",
minimumSignificantDigits: 3
}
123,456.789°
{
style: "unit",
unit: "degree",
minimumSignificantDigits: 4
}
123,456.789°
{
style: "unit",
unit: "degree",
minimumSignificantDigits: 5
}
123,456.789°

maximumSignificantDigits

Browser support

Available in Chrome from version 24 Chrome
Available in Edge from version 12 Edge
Available in Firefox from version 29 Firefox
Available in Opera from version 15 Opera
Available in Safari from version 10 Safari
Available in Chrome Android from version 25 Chrome Android
Available in Firefox for Android from version 56 Firefox for Android
Available in Opera Android from version 14 Opera Android
Available in Safari on iOS from version 10 Safari on iOS
Available in Samsung Internet from version 1.5 Samsung Internet
Available in WebView Android from version 4.4 WebView Android
Available in WebView on iOS from version 10 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 0.12.0 Node.js
{
style: "unit",
unit: "degree",
maximumSignificantDigits: 1
}
100,000°
{
style: "unit",
unit: "degree",
maximumSignificantDigits: 2
}
120,000°
{
style: "unit",
unit: "degree",
maximumSignificantDigits: 3
}
123,000°
{
style: "unit",
unit: "degree",
maximumSignificantDigits: 4
}
123,500°
{
style: "unit",
unit: "degree",
maximumSignificantDigits: 5
}
123,460°

roundingIncrement

Browser support

Partial support

Available in Chrome from version 106 Chrome
Available in Edge from version 106 Edge
Available in Firefox from version 116 Firefox
Available in Opera from version 92 Opera
Available in Safari from version 15.4 Safari
Available in Chrome Android from version 106 Chrome Android
Available in Firefox for Android from version 116 Firefox for Android
Available in Opera Android from version 72 Opera Android
Available in Safari on iOS from version 15.4 Safari on iOS
Available in Samsung Internet from version 20.0 Samsung Internet
Available in WebView Android from version 106 WebView Android
Available in WebView on iOS from version 15.4 WebView on iOS
Not available in Deno Deno
Available in Node.js from version 19.0.0 Node.js
{
style: "unit",
unit: "degree",
roundingIncrement: 1
}
123,456.789°
{
style: "unit",
unit: "degree",
roundingIncrement: 2
}
123,456°
{
style: "unit",
unit: "degree",
roundingIncrement: 5
}
123,455°
{
style: "unit",
unit: "degree",
roundingIncrement: 10
}
123,460°
{
style: "unit",
unit: "degree",
roundingIncrement: 20
}
123,460°
{
style: "unit",
unit: "degree",
roundingIncrement: 25
}
123,450°
{
style: "unit",
unit: "degree",
roundingIncrement: 50
}
123,450°
{
style: "unit",
unit: "degree",
roundingIncrement: 100
}
123,500°
{
style: "unit",
unit: "degree",
roundingIncrement: 200
}
123,400°
{
style: "unit",
unit: "degree",
roundingIncrement: 250
}
123,500°
{
style: "unit",
unit: "degree",
roundingIncrement: 500
}
123,500°
{
style: "unit",
unit: "degree",
roundingIncrement: 1000
}
123,000°
{
style: "unit",
unit: "degree",
roundingIncrement: 2000
}
124,000°
{
style: "unit",
unit: "degree",
roundingIncrement: 2500
}
122,500°
{
style: "unit",
unit: "degree",
roundingIncrement: 5000
}
125,000°

roundingMode

Browser support

Partial support

Available in Chrome from version 106 Chrome
Available in Edge from version 106 Edge
Available in Firefox from version 116 Firefox
Available in Opera from version 92 Opera
Available in Safari from version 15.4 Safari
Available in Chrome Android from version 106 Chrome Android
Available in Firefox for Android from version 116 Firefox for Android
Available in Opera Android from version 72 Opera Android
Available in Safari on iOS from version 15.4 Safari on iOS
Available in Samsung Internet from version 20.0 Samsung Internet
Available in WebView Android from version 106 WebView Android
Available in WebView on iOS from version 15.4 WebView on iOS
Not available in Deno Deno
Available in Node.js from version 19.0.0 Node.js
{
style: "unit",
unit: "degree",
roundingMode: "ceil"
}
123,456.789°
{
style: "unit",
unit: "degree",
roundingMode: "floor"
}
123,456.789°
{
style: "unit",
unit: "degree",
roundingMode: "expand"
}
123,456.789°
{
style: "unit",
unit: "degree",
roundingMode: "trunc"
}
123,456.789°
{
style: "unit",
unit: "degree",
roundingMode: "halfCeil"
}
123,456.789°
{
style: "unit",
unit: "degree",
roundingMode: "halfFloor"
}
123,456.789°
{
style: "unit",
unit: "degree",
roundingMode: "halfExpand"
}
123,456.789°
{
style: "unit",
unit: "degree",
roundingMode: "halfTrunc"
}
123,456.789°
{
style: "unit",
unit: "degree",
roundingMode: "halfEven"
}
123,456.789°

roundingPriority

Browser support

Partial support

Available in Chrome from version 106 Chrome
Available in Edge from version 106 Edge
Available in Firefox from version 116 Firefox
Available in Opera from version 92 Opera
Available in Safari from version 15.4 Safari
Available in Chrome Android from version 106 Chrome Android
Available in Firefox for Android from version 116 Firefox for Android
Available in Opera Android from version 72 Opera Android
Available in Safari on iOS from version 15.4 Safari on iOS
Available in Samsung Internet from version 20.0 Samsung Internet
Available in WebView Android from version 106 WebView Android
Available in WebView on iOS from version 15.4 WebView on iOS
Not available in Deno Deno
Available in Node.js from version 19.0.0 Node.js
{
style: "unit",
unit: "degree",
roundingPriority: "auto"
}
123,456.789°
{
style: "unit",
unit: "degree",
roundingPriority: "morePrecision"
}
123,456.789°
{
style: "unit",
unit: "degree",
roundingPriority: "lessPrecision"
}
123,456.789°

trailingZeroDisplay

Browser support

Partial support

Available in Chrome from version 106 Chrome
Available in Edge from version 106 Edge
Available in Firefox from version 116 Firefox
Available in Opera from version 92 Opera
Available in Safari from version 15.4 Safari
Available in Chrome Android from version 106 Chrome Android
Available in Firefox for Android from version 116 Firefox for Android
Available in Opera Android from version 72 Opera Android
Available in Safari on iOS from version 15.4 Safari on iOS
Available in Samsung Internet from version 20.0 Samsung Internet
Available in WebView Android from version 106 WebView Android
Available in WebView on iOS from version 15.4 WebView on iOS
Not available in Deno Deno
Available in Node.js from version 19.0.0 Node.js
{
style: "unit",
unit: "degree",
trailingZeroDisplay: "auto"
}
123,456.789°
{
style: "unit",
unit: "degree",
trailingZeroDisplay: "stripIfInteger"
}
123,456.789°

localeMatcher

Browser support

Available in Chrome from version 24 Chrome
Available in Edge from version 12 Edge
Available in Firefox from version 29 Firefox
Available in Opera from version 15 Opera
Available in Safari from version 10 Safari
Available in Chrome Android from version 25 Chrome Android
Available in Firefox for Android from version 56 Firefox for Android
Available in Opera Android from version 14 Opera Android
Available in Safari on iOS from version 10 Safari on iOS
Available in Samsung Internet from version 1.5 Samsung Internet
Available in WebView Android from version 4.4 WebView Android
Available in WebView on iOS from version 10 WebView on iOS
Available in Deno from version 1.8 Deno
Available in Node.js from version 0.12.0 Node.js
{
style: "unit",
unit: "degree",
localeMatcher: "best fit"
}
123,456.789°
{
style: "unit",
unit: "degree",
localeMatcher: "lookup"
}
123,456.789°