<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pyopyopyo</author_name>
  <author_url>https://blog.hatena.ne.jp/pyopyopyo/</author_url>
  <blog_title>pyopyopyo - Linuxとかプログラミングの覚え書き - </blog_title>
  <blog_url>https://pyopyopyo.hatenablog.com/</blog_url>
  <categories>
    <anon>windows</anon>
    <anon>Linux</anon>
    <anon>c/c++</anon>
  </categories>
  <description>gcc環境だと math.h に NAN という定数が定義されている。ところが visual c++ (visual studio)には対応する定義が無い。環境に依存しない、ポータブルな、移植性の高いコードが必要な場合は、STLを使って #include &lt;limits&gt; std::numeric_limits&lt;float&gt;::quiet_NaN(); std::numeric_limits&lt;double&gt;::quiet_NaN();と書けば良い。なお quiet_NaN() の&quot;quiet&quot;はシグナルを発生させないという意味。浮動小数点関連の仕様を定めているIEEE 754は、2 種類の N…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpyopyopyo.hatenablog.com%2Fentry%2F20100330%2Fp1&quot; title=&quot; NANの定義について - pyopyopyo - Linuxとかプログラミングの覚え書き - &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>2010-03-30 00:00:00</published>
  <title> NANの定義について</title>
  <type>rich</type>
  <url>https://pyopyopyo.hatenablog.com/entry/20100330/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
