{"id":5,"date":"2022-12-17T14:34:00","date_gmt":"2022-12-17T06:34:00","guid":{"rendered":"https:\/\/boostup.cf\/?p=5"},"modified":"2024-07-04T08:38:41","modified_gmt":"2024-07-04T00:38:41","slug":"c%e6%a0%87%e9%a2%98","status":"publish","type":"post","link":"https:\/\/189505.xyz\/?p=5","title":{"rendered":"IEEE 754"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_40 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" area-label=\"ez-toc-toggle-icon-1\"><label for=\"item-69e01aa552958\" aria-label=\"Table of Content\"><span style=\"display: flex;align-items: center;width: 35px;height: 30px;justify-content: center;direction:ltr;\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/label><input  type=\"checkbox\" id=\"item-69e01aa552958\"><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/189505.xyz\/?p=5\/#ieee_754%E5%88%B0%E5%8D%81%E8%BF%9B%E6%95%B0\" title=\" ieee 754\u5230\u5341\u8fdb\u6570\"> ieee 754\u5230\u5341\u8fdb\u6570<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/189505.xyz\/?p=5\/#%E7%89%B9%E6%AE%8A%E6%83%85%E5%86%B5\" title=\" \u7279\u6b8a\u60c5\u51b5\"> \u7279\u6b8a\u60c5\u51b5<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"ieee_754%E5%88%B0%E5%8D%81%E8%BF%9B%E6%95%B0\"><\/span> ieee 754\u5230\u5341\u8fdb\u6570<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\nieee 754 \u4ece\u9ad8\u5230\u4f4e, 1\u4e2a\u7b26\u53f7\u4f4d\uff0c8\u4f4dexponent, 23\u4f4dfraction\n<\/p>\n<p>\n\u4f8b\u5b50\uff1a\n<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/static.189505.xyz\/blogImages\/cpp\/Float_example.svg\"><\/p>\n<p><\/p>\n<p>\n\u5185\u5b58\u4e2d\u7684\u6570\u636e\u7ffb\u8bd1\u6210\u5341\u8fdb\u6570\u7684\u516c\u5f0f\uff1a\n<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/static.189505.xyz\/blogImages\/ieee754\/example1.svg\"><\/p>\n<p><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/static.189505.xyz\/blogImages\/ieee754\/example2.svg\"><\/p>\n<p><\/p>\n<p>\n\u6839\u636e\u516c\u5f0f<br \/>\n<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/static.189505.xyz\/blogImages\/ieee754\/cal1.svg\"><br \/>\n<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/static.189505.xyz\/blogImages\/ieee754\/cal2.svg\"><br \/>\n<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/static.189505.xyz\/blogImages\/ieee754\/cal3.svg\"><br \/>\n<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/static.189505.xyz\/blogImages\/ieee754\/cal4.svg\"><br \/>\n<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/static.189505.xyz\/blogImages\/ieee754\/cal5.svg\"><br \/>\n<\/p>\n<p>\u6700\u7ec8\u8868\u793a\u7684\u5341\u8fdb\u5236\u6d6e\u70b9\u6570<br \/>\n<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/static.189505.xyz\/blogImages\/ieee754\/cal6.svg\"><\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E7%89%B9%E6%AE%8A%E6%83%85%E5%86%B5\"><\/span> \u7279\u6b8a\u60c5\u51b5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<table>\n<caption>\nspecial case<br \/>\n<\/caption>\n<tr>\n<th> Exponent<\/th>\n<th>fraction = 0<\/th>\n<th>fraction \u2260 0<\/th>\n<th>Equation<\/th>\n<\/tr>\n<tr>\n<td>$00_H= 00000000_2$<\/td>\n<td> \u00b1zero<\/td>\n<td>subnormal number<\/td>\n<td> $(-1)^{sign} \\times 2^{-126} \\times  0.fraction$ <\/td>\n<\/tr>\n<tr>\n<td>$01_H, ..., FE_H = 00000001_2, ..., 11111110_2$<\/td>\n<td colspan=\"2\"> normal value<\/td>\n<td> $(-1)^{sign} \\times 2^{exponent-127} \\times  1.fraction$ <\/td>\n<\/tr>\n<tr>\n<td>$FF_H= 11111111_2$<\/td>\n<td> \u00b1infinity<\/td>\n<td>NaN(quiet, signaling)<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>ieee 754\u5230\u5341\u8fdb\u6570 ieee 754 \u4ece\u9ad8\u5230\u4f4e, 1\u4e2a\u7b26\u53f7\u4f4d\uff0c8\u4f4dexponent, 23\u4f4dfracti &#8230; <a title=\"IEEE 754\" class=\"read-more\" href=\"https:\/\/189505.xyz\/?p=5\" aria-label=\"More on IEEE 754\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/189505.xyz\/index.php?rest_route=\/wp\/v2\/posts\/5"}],"collection":[{"href":"https:\/\/189505.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/189505.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/189505.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/189505.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5"}],"version-history":[{"count":10,"href":"https:\/\/189505.xyz\/index.php?rest_route=\/wp\/v2\/posts\/5\/revisions"}],"predecessor-version":[{"id":455,"href":"https:\/\/189505.xyz\/index.php?rest_route=\/wp\/v2\/posts\/5\/revisions\/455"}],"wp:attachment":[{"href":"https:\/\/189505.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/189505.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/189505.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}