<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inaz2</author_name>
  <author_url>https://blog.hatena.ne.jp/inaz2/</author_url>
  <blog_title>ももいろテクノロジー</blog_title>
  <blog_url>https://inaz2.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>Pythonのstructモジュールを使うと、int型やdouble型の数字をバイト列に変換したり（pack）、バイト列から数字を取り出したり（unpack）できる。 これを利用して、double型の倍精度浮動小数点数がどのようなバイト列として表現されるかを確認してみる。 一般に、double型の小数はIEEE 754のbinary64形式にて扱われる。 つまり、最初の1bitが符号を表し、続く11bitが指数、残りの52bitが仮数を表す。 実際に確かめてみる。 まずは、structモジュールをインポートして、変数に数字を代入。 $ python Python 2.7.5 (default,…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finaz2.hatenablog.com%2Fentry%2F2013%2F12%2F05%2F234357&quot; title=&quot;Pythonでdouble型のバイナリ表現を確認する - ももいろテクノロジー&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>2013-12-05 23:43:57</published>
  <title>Pythonでdouble型のバイナリ表現を確認する</title>
  <type>rich</type>
  <url>https://inaz2.hatenablog.com/entry/2013/12/05/234357</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
