Explore tweets tagged as #NumberFormat
@MBarvian
Max Barvian
10 months
Introducing <NumberFlow/> for React:.Transition, format, and localize numbers. Built on Intl.NumberFormat and Web Animations. Dependency-free. Accessible. Customizable.
109
365
6K
@KaraBharat
Bharat Kara
4 months
JavaScript's Intl.NumberFormat makes your numbers effortlessly more readable!. See it in action 👇
Tweet media one
5
71
910
@Yakinik
🍖やきにく🍖
2 years
わかっぱー。.オーバーフローじゃなくて数値成形のミスというか、想定外挙動だった。.この関数で数値にカンマを足してるんだけど、.s = s.replace(/^(\d*)$/, "$1.");.の部分の正規表現がマイナスの値に対応してなくて、結果的に数値が100倍になってた。.現代だと Intl.NumberFormat でできちゃうね。
Tweet media one
Tweet media two
0
25
60
@MBarvian
Max Barvian
1 year
Introducing MotionNumber for @Framer Motion: a ~3kb component to transition, format, and localize numbers. Built on Intl.NumberFormat. Accessible. Customizable.
46
109
2K
@MBarvian
Max Barvian
1 year
Intl.NumberFormat + @Framer Motion layout animations are a match made in heaven. Dropping a package for this (hopefully) soon. cc @mattgperry
18
30
869
@KaraBharat
Bharat Kara
2 months
🔥 Cheat Sheet for Intl.NumberFormat in JavaScript. Format currencies, percentages, units, and more with locale-aware and powerful!. See it in action 👇 🔖 Bookmark it for later!
Tweet media one
1
10
99
@reactive_dude
Andrej ⚡️
3 years
If you're writing custom number formatting functions in JavaScript, there's a better way. Try the built-in Intl.NumberFormat instead, it's great!
Tweet media one
18
60
329
@timhnln
Tim Hanlon
9 days
TIL Intl.NumberFormat supports unit formatting, with composition using x-per-y
Tweet media one
1
0
3
@killofki
김기웅 Kim, Kie-Woong
3 years
{ ///. const [ . HinduArabicDigits ] = '1234567890' . const zhFormater = new Intl .NumberFormat( 'zh-u-nu-hanidec' ) .const [ . zhDigits ] = HinduArabicDigits .map( zhFormater .format ) . const [ . korDigits ] = '일이삼사오육칠팔구공' . } ///
Tweet media one
Tweet media two
1
0
1
@reinink
Jonathan Reinink
1 year
💰 If you've ever had to display localized pricing in a JavaScript application, the `Intl.NumberFormat()` helper is awesome. Give it your language, currency, amount, and some (optional) display options, and it will handle all the formatting for you.
Tweet media one
5
17
108
@the_mzakrzewski
Michał Zakrzewski
7 months
Did you know that you can localize and style numbers with Intl.NumberFormat?
Tweet media one
11
3
45
@_ndeyefatoudiop
Ndeye Fatou Diop 🚢 💻 | DEV | 🇸🇳🇫🇷
9 months
JavaScript Tip 💡. Use Intl.NumberFormat for localized currency and percentage formatting.
Tweet media one
11
8
46
@alamosaravali
Alamo Saravali
2 years
For a long time I used regex and other ways to get currency format. Using Intl.NumberFormat is awesome!. #javascript
Tweet media one
1
0
0
@terrierscript
terrierscript
2 years
Intl.NumberFormatのhanidec、100をそう書くならもう役所の文章とかしか使い道無いじゃないのよ
Tweet media one
0
0
0
@terrierscript
terrierscript
2 years
Temporal.Duration、NumberFormatでなんとか日本語化できる!っていう発見をしたけど、日本語だと空白の位置が気持ち悪い。replace(" ","")とかするしかないか。
Tweet media one
0
0
1
@callum_codes
Callum
10 months
A trick I've used a bunch: format lamports -> SOL, or format token amounts, using Intl.NumberFormat. It'll accept format of the type `500_000E-6` and format it correctly. This means you don't have to do a 'divide by 10^decimals', you don't have to worry about the floating point
Tweet media one
Tweet media two
2
0
11
@felix_mosheev
Felix Mosheev
3 years
Why on earth Safari implements Web API's differently?. See many hydration errors on Safari, checking the reason, reveals that Intl.NumberFormat generate an extra direction char 🤢
Tweet media one
Tweet media two
0
0
3
@kazu_pon
🦋kazupon🦋
3 years
Behavior of Intl.NumberFormat by browser.
Tweet media one
Tweet media two
Tweet media three
3
0
1
@giraffender
жирафєндєр
11 months
Прикол, вперше з таким стикаюсь).Нативний new Intl.NumberFormat при currencyDisplay: 'symbol' та однакову локаль uk-UA віддає різний символ та викликає помилку гідрації. На SSR: ₴.На CSR: грн.Дякую, дуже дякую, щиро дякую
Tweet media one
Tweet media two
4
0
4