{"image_url":null,"height":"190","version":"1.0","provider_name":"Hatena Blog","type":"rich","author_url":"https://blog.hatena.ne.jp/amachang/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Famachang.hatenablog.com%2Fentry%2F20090528%2F1243493912\" title=\" double \u304c IEEE 754 \u304b\u3069\u3046\u304b - IT\u6226\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://amachang.hatenablog.com/","description":"double \u3092\u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u3059\u308b\u3068\u304d\u3068\u304b\u306f\u3001 std::numeric_limit< double >::is_iec559 \u3092 assert \u3057\u3066\u304a\u3051\u3070\u3044\u3044\u306e\u304b\u306a\u30fc\u3002 #include <cassert> #include <limits> #include <boost/cstdint.hpp> template<class Itr> void serialize(Itr it, const double d) { // \u2193 \u3053\u3093\u306a\u611f\u3058 assert(sizeof(double) == sizeof(boost::uint64_t)); // 64 bit assert(std::nume\u2026","provider_url":"https://hatena.blog","url":"https://amachang.hatenablog.com/entry/20090528/1243493912","width":"100%","categories":["C++"],"blog_title":"IT\u6226\u8a18","title":" double \u304c IEEE 754 \u304b\u3069\u3046\u304b","published":"2009-05-28 15:58:32","author_name":"amachang"}