<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kikiki-kiki</author_name>
  <author_url>https://blog.hatena.ne.jp/kikiki-kiki/</author_url>
  <blog_title>かもメモ</blog_title>
  <blog_url>https://chaika.hatenablog.com/</blog_url>
  <categories>
    <anon>TypeScript</anon>
    <anon>JavaScript</anon>
    <anon>Tips</anon>
  </categories>
  <description>以前ゼロパディングで桁数を合わせる方法のメモを書いていましたが、三桁ごとにカンマ区切りのフォーマットもよくやるよな〜と思ったのでやり方のメモ。 こんなの 1234567890 =&gt; &quot;1,234,567,890&quot; 1234567890.1235 =&gt; &quot;1,234,567,890.1235&quot; -1234567 =&gt; &quot;-1,234,567&quot; -1234567.89054321 =&gt; &quot;-1,234,567.89054321&quot; 結論 Number.toLocaleString か Intl.NumberFormat を使うのが簡単 ※ 但し小数点以下の有効桁数に注意 Number.toLocal…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2021%2F07%2F07%2F190700&quot; title=&quot;TypeScript 数字をカンマ区切りの文字列に変換したい - かもメモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://m.media-amazon.com/images/I/61p0t0p8GxL._SL500_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-07-07 19:07:00</published>
  <title>TypeScript 数字をカンマ区切りの文字列に変換したい</title>
  <type>rich</type>
  <url>https://chaika.hatenablog.com/entry/2021/07/07/190700</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
