Since pretty much forever, you can convert from a Number to a localized string with `toLocaleString()`, but there's still no `Number.fromLocaleString()`. (10000).toLocaleString() === '10,000'; // or something else for other locales.
-
Show this thread
-
@bmeurer is there some obvious (or non-obvious) technical reason this doesn't exist? Like... `Number.parseLocaleString('10,000,000.00')` Or am I just dead wrong and there's an API I don't know about that does this?8 replies 0 retweets 3 likesShow this thread -
Replying to @BenLesh2 replies 0 retweets 2 likes
1:55 PM - 19 Feb 2020
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.