<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>gurrium</author_name>
  <author_url>https://blog.hatena.ne.jp/gurrium/</author_url>
  <blog_title>ぜのぜ</blog_title>
  <blog_url>https://giarrium.hatenablog.com/</blog_url>
  <categories>
    <anon>Swift</anon>
  </categories>
  <description>compactName を使うとよさそうだが、 VStack(alignment: .leading) { ForEach(0..&lt;15) { i in Text( pow(10, i).formatted( .number .locale(.init(identifier: &quot;en_UK&quot;)) .notation(.compactName) // これ ) ) } } こうなる。 短縮表示といえばSI接頭辞だろと思ってたけど、確かに一般的にはこっちか〜となったのでヨシ！ 他のフォーマットはFormatStyleに詳しい。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgiarrium.hatenablog.com%2Fentry%2F2025%2F07%2F28%2F162749&quot; title=&quot;SwiftでSI接頭辞を使って数字を短く表示する（したかった） - ぜのぜ&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://cdn-ak.f.st-hatena.com/images/fotolife/g/gurrium/20250728/20250728153523.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-07-28 16:27:49</published>
  <title>SwiftでSI接頭辞を使って数字を短く表示する（したかった）</title>
  <type>rich</type>
  <url>https://giarrium.hatenablog.com/entry/2025/07/28/162749</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
