<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ch3cooh393</author_name>
  <author_url>https://blog.hatena.ne.jp/ch3cooh393/</author_url>
  <blog_title>iOSアプリ開発の逆引き辞典</blog_title>
  <blog_url>https://ios.ch3cooh.jp/</blog_url>
  <categories>
    <anon>数値操作、数学</anon>
  </categories>
  <description>本記事では、数値の少数点の処理(丸め処理、整数化)をおこなう方法を紹介します。 math.hで定義されているCの関数を使用します。 切り捨て math.hでは下記のように定義されています。 extern float floorf(float); extern double floor(double); extern long double floorl(long double); 以下のサンプルコードは、2.55の小数点部分を切り捨てして2にします。 double value = 2.55; double result = floor(value); // 出力： result =&gt; 2 切り…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fios.ch3cooh.jp%2Fentry%2F20140306%2F1394047725&quot; title=&quot;小数点の切り捨て、切り上げ、四捨五入 - iOSアプリ開発の逆引き辞典&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-03-06 04:28:45</published>
  <title>小数点の切り捨て、切り上げ、四捨五入</title>
  <type>rich</type>
  <url>https://ios.ch3cooh.jp/entry/20140306/1394047725</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
