<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bluebirdofoz</author_name>
  <author_url>https://blog.hatena.ne.jp/bluebirdofoz/</author_url>
  <blog_title>MRが楽しい</blog_title>
  <blog_url>https://bluebirdofoz.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>本日はUnityの小ネタ枠です。 Unityで小数点以下の桁数を指定して数値を文字列表示する方法についてです。 小数点以下の桁数を指定して数値を文字列表示する 小数点以下の桁数を指定して数値を文字列表示するにはToStringでフォーマットを指定することで可能です。 float value = 1.234f; string text = value.ToString(&quot;F2&quot;, CultureInfo.CurrentCulture); 上記の場合、指定した桁数までのは必ず表示されるので、値が 1 の場合でも 1.00 のように表示されます。 Unity バージョン 2021.1以降では Tri…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbluebirdofoz.hatenablog.com%2Fentry%2F2024%2F04%2F29%2F232908&quot; title=&quot;Unityで小数点以下の桁数を指定して数値を文字列表示する - MRが楽しい&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/b/bluebirdofoz/20240429/20240429232837.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-04-29 23:29:08</published>
  <title>Unityで小数点以下の桁数を指定して数値を文字列表示する</title>
  <type>rich</type>
  <url>https://bluebirdofoz.hatenablog.com/entry/2024/04/29/232908</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
