<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanakaBox</author_name>
  <author_url>https://blog.hatena.ne.jp/tanakaBox/</author_url>
  <blog_title>ボクノス</blog_title>
  <blog_url>https://boxnos.hatenablog.com/</blog_url>
  <categories>
    <anon>gcc</anon>
  </categories>
  <description>K&amp;Rを見たとき、何処かで見た事のあるプログラムが多数存在する。温度変換もそのひとつ。正規表現のバイブル「ふくろう本」の例題でも使われている(読んでないけど)由緒正しき温度変換をボクノスなりに読み解こうと思う。 整数の割り算 温度変換のポイントは整数の割り算だと思う。1/2をやろう。 printf(&quot;%d\n&quot;, 1 / 2); /* 0 */ 結果は0。整数演算では結果も整数になる。なぜなら、「整数と浮動少数では扱うレジスタが別だから」である。0.5を表示させるときは、 printf(&quot;%f\n&quot;, 1.0 / 2.0); /* 0.50000 */ とする。 バグバグなprintf 変なの…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fboxnos.hatenablog.com%2Fentry%2F20070715%2F1184435579&quot; title=&quot; K&amp;amp;Rを読もう(2) 1.2 - 1.3 温度変換 - ボクノス&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>2007-07-15 02:52:59</published>
  <title> K&amp;Rを読もう(2) 1.2 - 1.3 温度変換</title>
  <type>rich</type>
  <url>https://boxnos.hatenablog.com/entry/20070715/1184435579</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
