{"id":2349,"date":"2025-02-26T08:00:00","date_gmt":"2025-02-26T00:00:00","guid":{"rendered":"https:\/\/www.wyrcad.com\/?p=2349"},"modified":"2025-02-26T14:55:41","modified_gmt":"2025-02-26T06:55:41","slug":"%e6%b5%ae%e7%82%b9%e6%95%b0%e8%bf%90%e7%ae%97","status":"publish","type":"post","link":"https:\/\/www.wyrcad.com\/?p=2349","title":{"rendered":"\u6d6e\u70b9\u6570\u8fd0\u7b97"},"content":{"rendered":"\n<p>\u6d6e\u70b9\u6570\u7684\u52a0\u6cd5\u548c\u51cf\u6cd5\u8fd0\u7b97\u662f\u8ba1\u7b97\u673a\u4e2d\u6700\u5e38\u89c1\u4e5f\u662f\u6700\u590d\u6742\u7684\u8fd0\u7b97\u4e4b\u4e00\u3002\u7531\u4e8e\u6d6e\u70b9\u6570\u7684\u5185\u90e8\u8868\u793a\u7531\u7b26\u53f7\uff08Sign\uff09\u3001\u6307\u6570\uff08Exponent\uff09\u548c\u5c3e\u6570\uff08Mantissa\uff09\u4e09\u90e8\u5206\u7ec4\u6210\uff0c\u6d6e\u70b9\u6570\u7684\u52a0\u51cf\u6cd5\u8fd0\u7b97\u5fc5\u987b\u5904\u7406\u8fd9\u4e9b\u90e8\u5206\u4e4b\u95f4\u7684\u590d\u6742\u5173\u7cfb\u3002\u4ee5\u4e0b\u662f\u6d6e\u70b9\u6570\u76f8\u52a0\u6216\u76f8\u51cf\u7684\u8be6\u7ec6\u8fd0\u7b97\u6b65\u9aa4\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-\u6d6e\u70b9\u6570\u8868\u793a\u7684\u56de\u987e\">1. \u6d6e\u70b9\u6570\u8868\u793a\u7684\u56de\u987e<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u7b26\u53f7\u4f4d<\/strong>\uff08Sign\uff09\uff1a\u8868\u793a\u6d6e\u70b9\u6570\u7684\u6b63\u8d1f\u3002<\/li>\n\n\n\n<li><strong>\u6307\u6570\u4f4d<\/strong>\uff08Exponent\uff09\uff1a\u8868\u793a\u6d6e\u70b9\u6570\u7684\u6307\u6570\u90e8\u5206\uff0c\u7ecf\u8fc7\u504f\u79fb\u91cf\u8c03\u6574\uff08\u5373\u504f\u7f6e\uff09\u3002<\/li>\n\n\n\n<li><strong>\u5c3e\u6570\u4f4d<\/strong>\uff08Mantissa\uff09\uff1a\u8868\u793a\u6d6e\u70b9\u6570\u7684\u6709\u6548\u6570\u5b57\uff0c\u901a\u5e38\u4ee5\u4e8c\u8fdb\u5236\u5f62\u5f0f\u8868\u793a\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2-\u6d6e\u70b9\u6570\u76f8\u52a0\u76f8\u51cf\u7684\u6b65\u9aa4\">2. \u6d6e\u70b9\u6570\u76f8\u52a0\/\u76f8\u51cf\u7684\u6b65\u9aa4<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"21-\u5bf9\u9636\u64cd\u4f5caligning-the-exponents\">2.1 \u5bf9\u9636\u64cd\u4f5c\uff08Aligning the Exponents\uff09<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9996\u5148\u6bd4\u8f83\u4e24\u4e2a\u6d6e\u70b9\u6570\u7684\u6307\u6570\u90e8\u5206\u3002\u5982\u679c\u6307\u6570\u4e0d\u76f8\u540c\uff0c\u5219\u9700\u8981\u5bf9\u5b83\u4eec\u8fdb\u884c\u5bf9\u9f50\uff1a\n<ul class=\"wp-block-list\">\n<li>\u5c06\u8f83\u5c0f\u6307\u6570\u7684\u90a3\u4e2a\u6d6e\u70b9\u6570\u7684\u5c3e\u6570\u53f3\u79fb\uff0c\u5e76\u76f8\u5e94\u5730\u589e\u52a0\u5b83\u7684\u6307\u6570\uff0c\u76f4\u5230\u4e24\u4e2a\u6d6e\u70b9\u6570\u7684\u6307\u6570\u76f8\u540c\u3002<\/li>\n\n\n\n<li>\u53f3\u79fb\u64cd\u4f5c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u5c3e\u6570\u7684\u7cbe\u5ea6\u635f\u5931\uff0c\u4f46\u8fd9\u662f\u5fc5\u987b\u7684\u4ee5\u4fbf\u80fd\u591f\u5bf9\u4e24\u4e2a\u6570\u8fdb\u884c\u76f8\u52a0\u6216\u76f8\u51cf\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u4e24\u4e2a\u6d6e\u70b9\u6570\u5206\u522b\u4e3a (2.5 \\times 10^3) \u548c (3.75 \\times 10^2)\uff0c\u9700\u8981\u5c06 (3.75 \\times 10^2) \u8f6c\u6362\u4e3a (0.375 \\times 10^3) \u4ee5\u4fbf\u4e0e (2.5 \\times 10^3) \u8fdb\u884c\u8fd0\u7b97\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"22-\u5c3e\u6570\u76f8\u52a0\u6216\u76f8\u51cfadding-or-subtracting-the-mantissas\">2.2 \u5c3e\u6570\u76f8\u52a0\u6216\u76f8\u51cf\uff08Adding or Subtracting the Mantissas\uff09<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5728\u5bf9\u9636\u64cd\u4f5c\u540e\uff0c\u4e24\u6570\u7684\u6307\u6570\u90e8\u5206\u5df2\u7ecf\u5bf9\u9f50\uff0c\u53ef\u4ee5\u76f4\u63a5\u5bf9\u5b83\u4eec\u7684\u5c3e\u6570\u8fdb\u884c\u52a0\u6cd5\u6216\u51cf\u6cd5\u8fd0\u7b97\u3002<\/li>\n\n\n\n<li>\u5c3e\u6570\u8fd0\u7b97\u7684\u7b26\u53f7\u51b3\u5b9a\u4e8e\u4e24\u4e2a\u6d6e\u70b9\u6570\u7684\u7b26\u53f7\u4f4d\uff1a\n<ul class=\"wp-block-list\">\n<li><strong>\u52a0\u6cd5<\/strong>\uff1a\u5982\u679c\u4e24\u4e2a\u6d6e\u70b9\u6570\u7b26\u53f7\u76f8\u540c\uff0c\u5219\u8fdb\u884c\u5c3e\u6570\u7684\u76f8\u52a0\u3002<\/li>\n\n\n\n<li><strong>\u51cf\u6cd5<\/strong>\uff1a\u5982\u679c\u4e24\u4e2a\u6d6e\u70b9\u6570\u7b26\u53f7\u4e0d\u540c\uff0c\u5219\u8fdb\u884c\u5c3e\u6570\u7684\u76f8\u51cf\uff08\u8fd9\u76f8\u5f53\u4e8e\u7b26\u53f7\u4e0d\u540c\u7684\u52a0\u6cd5\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"23-\u89c4\u683c\u5316\u7ed3\u679cnormalizing-the-result\">2.3 \u89c4\u683c\u5316\u7ed3\u679c\uff08Normalizing the Result\uff09<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5c3e\u6570\u76f8\u52a0\u6216\u76f8\u51cf\u540e\uff0c\u7ed3\u679c\u53ef\u80fd\u9700\u8981\u89c4\u683c\u5316\uff0c\u5373\u8c03\u6574\u5c3e\u6570\u548c\u6307\u6570\uff0c\u4f7f\u5c3e\u6570\u7684\u8303\u56f4\u7b26\u5408\u6807\u51c6\uff08\u901a\u5e38\u5728 1 \u2264 \u5c3e\u6570 &lt; 2 \u7684\u8303\u56f4\u5185\uff09\u3002<\/li>\n\n\n\n<li>\u89c4\u683c\u5316\u53ef\u80fd\u5305\u62ec\uff1a\n<ul class=\"wp-block-list\">\n<li><strong>\u5de6\u79fb\u5c3e\u6570\u5e76\u51cf\u5c0f\u6307\u6570<\/strong>\uff1a\u5982\u679c\u5c3e\u6570\u7684\u6700\u9ad8\u6709\u6548\u4f4d\u4e3a 0\uff0c\u5219\u9700\u8981\u5de6\u79fb\u5c3e\u6570\uff0c\u76f4\u5230\u6700\u9ad8\u6709\u6548\u4f4d\u4e3a 1\uff0c\u540c\u65f6\u6307\u6570\u51cf 1\u3002<\/li>\n\n\n\n<li><strong>\u53f3\u79fb\u5c3e\u6570\u5e76\u589e\u52a0\u6307\u6570<\/strong>\uff1a\u5982\u679c\u5c3e\u6570\u7684\u4f4d\u6570\u8d85\u8fc7\u6807\u51c6\u7684\u6709\u6548\u4f4d\uff0c\u5219\u9700\u8981\u53f3\u79fb\u5c3e\u6570\u5e76\u589e\u52a0\u6307\u6570\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"24-\u820d\u5165\u64cd\u4f5crounding-the-result\">2.4 \u820d\u5165\u64cd\u4f5c\uff08Rounding the Result\uff09<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5728\u89c4\u683c\u5316\u540e\uff0c\u53ef\u80fd\u9700\u8981\u5bf9\u5c3e\u6570\u8fdb\u884c\u820d\u5165\u4ee5\u6ee1\u8db3\u6d6e\u70b9\u6570\u7684\u7cbe\u5ea6\u8981\u6c42\u3002<\/li>\n\n\n\n<li>IEEE 754 \u6807\u51c6\u63d0\u4f9b\u4e86\u51e0\u79cd\u820d\u5165\u65b9\u5f0f\uff0c\u6700\u5e38\u7528\u7684\u662f<strong>\u5c31\u8fd1\u820d\u5165<\/strong>\uff08Round to nearest, ties to even\uff09\uff0c\u5373\u9009\u62e9\u6700\u63a5\u8fd1\u7684\u6570\u503c\uff0c\u5982\u679c\u521a\u597d\u5728\u4e2d\u95f4\uff0c\u5219\u9009\u62e9\u5076\u6570\u65b9\u5411\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"25-\u6ea2\u51fa\u548c\u4e0b\u6ea2\u5904\u7406handling-overflow-and-underflow\">2.5 \u6ea2\u51fa\u548c\u4e0b\u6ea2\u5904\u7406\uff08Handling Overflow and Underflow\uff09<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u89c4\u683c\u5316\u548c\u820d\u5165\u540e\uff0c\u9700\u8981\u68c0\u67e5\u7ed3\u679c\u662f\u5426\u51fa\u73b0\u6ea2\u51fa\uff08Overflow\uff09\u6216\u4e0b\u6ea2\uff08Underflow\uff09\u3002\n<ul class=\"wp-block-list\">\n<li><strong>\u6ea2\u51fa<\/strong>\uff1a\u5982\u679c\u6307\u6570\u8d85\u51fa\u6d6e\u70b9\u6570\u8868\u793a\u8303\u56f4\uff0c\u7ed3\u679c\u901a\u5e38\u8bbe\u7f6e\u4e3a\u6b63\u65e0\u7a77\u6216\u8d1f\u65e0\u7a77\u3002<\/li>\n\n\n\n<li><strong>\u4e0b\u6ea2<\/strong>\uff1a\u5982\u679c\u6307\u6570\u592a\u5c0f\uff0c\u7ed3\u679c\u53ef\u80fd\u88ab\u8bbe\u7f6e\u4e3a\u96f6\u6216\u4e00\u4e2a\u6b21\u6b63\u89c4\u6570\uff08\u5373\u6307\u6570\u4e3a\u6781\u5c0f\u503c\u65f6\u7684\u6570\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"3-\u7ec4\u5408\u6700\u7ec8\u7ed3\u679ccombining-the-final-result\">3. \u7ec4\u5408\u6700\u7ec8\u7ed3\u679c\uff08Combining the Final Result\uff09<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6700\u540e\uff0c\u5c06\u5904\u7406\u540e\u7684\u7b26\u53f7\u4f4d\u3001\u6307\u6570\u4f4d\u548c\u5c3e\u6570\u4f4d\u91cd\u65b0\u7ec4\u5408\u6210\u4e00\u4e2a\u7b26\u5408IEEE 754\u6807\u51c6\u7684\u6d6e\u70b9\u6570\uff0c\u5e76\u4f5c\u4e3a\u6700\u7ec8\u7ed3\u679c\u8fd4\u56de\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u603b\u7ed3\">\u603b\u7ed3<\/h3>\n\n\n\n<p>\u6d6e\u70b9\u6570\u7684\u52a0\u51cf\u6cd5\u8fd0\u7b97\u5305\u62ec\u591a\u4e2a\u6b65\u9aa4\uff1a\u5bf9\u9636\u3001\u5c3e\u6570\u76f8\u52a0\u6216\u76f8\u51cf\u3001\u7ed3\u679c\u89c4\u683c\u5316\u3001\u820d\u5165\u4ee5\u53ca\u6ea2\u51fa\/\u4e0b\u6ea2\u5904\u7406\u3002\u8fd9\u4e00\u7cfb\u5217\u64cd\u4f5c\u786e\u4fdd\u4e86\u6d6e\u70b9\u6570\u8fd0\u7b97\u7684\u7cbe\u5ea6\u548c\u7a33\u5b9a\u6027\u3002\u786c\u4ef6\u4e2d\u7684\u6d6e\u70b9\u8fd0\u7b97\u5355\u5143\uff08FPU\uff09\u4e13\u95e8\u4f18\u5316\u4e86\u8fd9\u4e9b\u64cd\u4f5c\uff0c\u4ee5\u63d0\u9ad8\u8ba1\u7b97\u6548\u7387\u3002<\/p>\n\n\n\n<p>\u6d6e\u70b9\u6570\u7684\u4e58\u6cd5\u548c\u9664\u6cd5\u8fd0\u7b97\u5728\u8ba1\u7b97\u673a\u4e2d\u4e5f\u9075\u5faaIEEE 754\u6807\u51c6\u3002\u4e0e\u6d6e\u70b9\u6570\u52a0\u6cd5\u548c\u51cf\u6cd5\u76f8\u6bd4\uff0c\u4e58\u6cd5\u548c\u9664\u6cd5\u7684\u8fd0\u7b97\u8fc7\u7a0b\u76f8\u5bf9\u7b80\u5355\u4e00\u4e9b\u3002\u4ee5\u4e0b\u662f\u6d6e\u70b9\u6570\u76f8\u4e58\u548c\u76f8\u9664\u7684\u5177\u4f53\u8fd0\u7b97\u7ec6\u8282\uff1a<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-\u6d6e\u70b9\u6570\u7684\u8868\u793a\u56de\u987e\">1. \u6d6e\u70b9\u6570\u7684\u8868\u793a\u56de\u987e<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u7b26\u53f7\u4f4d<\/strong>\uff08Sign\uff09\uff1a1 \u4f4d\uff0c\u7528\u4e8e\u8868\u793a\u6b63\u8d1f\u53f7\u3002<\/li>\n\n\n\n<li><strong>\u6307\u6570\u4f4d<\/strong>\uff08Exponent\uff09\uff1a\u8868\u793a\u6d6e\u70b9\u6570\u7684\u6307\u6570\u90e8\u5206\uff0c\u7ecf\u8fc7\u504f\u79fb\u91cf\u8c03\u6574\u3002<\/li>\n\n\n\n<li><strong>\u5c3e\u6570\u4f4d<\/strong>\uff08Mantissa\uff09\uff1a\u8868\u793a\u6d6e\u70b9\u6570\u7684\u6709\u6548\u6570\u5b57\uff0c\u901a\u5e38\u9690\u85cf\u4e86\u4e00\u4e2a\u9690\u542b\u7684\u6700\u9ad8\u4f4d 1\uff08\u5bf9\u4e8e\u89c4\u8303\u5316\u6570\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2-\u6d6e\u70b9\u6570\u76f8\u4e58\u8fd0\u7b97\u7684\u7ec6\u8282\">2. \u6d6e\u70b9\u6570\u76f8\u4e58\u8fd0\u7b97\u7684\u7ec6\u8282<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"21-\u7b26\u53f7\u4f4d\u7684\u5904\u7406\">2.1 \u7b26\u53f7\u4f4d\u7684\u5904\u7406<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6d6e\u70b9\u6570\u4e58\u6cd5\u7684\u7b26\u53f7\u4f4d\u7531\u4e24\u4e2a\u6d6e\u70b9\u6570\u7684\u7b26\u53f7\u4f4d\u51b3\u5b9a\u3002<strong>\u5982\u679c\u4e24\u4e2a\u6d6e\u70b9\u6570\u7b26\u53f7\u76f8\u540c\uff08\u90fd\u4e3a\u6b63\u6216\u90fd\u4e3a\u8d1f\uff09\uff0c\u4e58\u79ef\u7684\u7b26\u53f7\u4e3a\u6b63<\/strong>\uff1b\u5982\u679c\u7b26\u53f7\u4e0d\u540c\uff0c\u4e58\u79ef\u7684\u7b26\u53f7\u4e3a\u8d1f\u3002<\/li>\n\n\n\n<li>\u8ba1\u7b97\u65b9\u6cd5\u662f\u7b80\u5355\u7684\u5f02\u6216\u8fd0\u7b97\uff1a<code>sign_result = sign_a XOR sign_b<\/code>\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"22-\u6307\u6570\u7684\u76f8\u52a0\">2.2 \u6307\u6570\u7684\u76f8\u52a0<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e58\u6cd5\u7684\u6307\u6570\u90e8\u5206\u7531\u4e24\u4e2a\u6d6e\u70b9\u6570\u7684\u6307\u6570\u90e8\u5206\u76f8\u52a0\uff0c\u7136\u540e\u51cf\u53bb\u504f\u79fb\u91cf\uff08Bias\uff09\u3002\u8fd9\u4e2a\u504f\u79fb\u91cf\u662f\u56e0\u4e3a\u6d6e\u70b9\u6570\u7684\u6307\u6570\u90e8\u5206\u5728\u5b58\u50a8\u65f6\u662f\u7ecf\u8fc7\u4e00\u4e2a\u504f\u79fb\u91cf\u8c03\u6574\u7684\uff08\u4f8b\u5982\uff0cIEEE 754 \u5355\u7cbe\u5ea6\u6d6e\u70b9\u6570\u7684\u504f\u79fb\u91cf\u4e3a127\uff09\u3002<\/li>\n\n\n\n<li>\u8ba1\u7b97\u516c\u5f0f\uff1a<code>exponent_result = (exponent_a + exponent_b) - Bias<\/code>\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"23-\u5c3e\u6570\u7684\u76f8\u4e58\">2.3 \u5c3e\u6570\u7684\u76f8\u4e58<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5728\u4e58\u6cd5\u4e2d\uff0c\u4e24\u4e2a\u6d6e\u70b9\u6570\u7684\u5c3e\u6570\u90e8\u5206\uff08\u5305\u62ec\u9690\u542b\u7684\u6700\u9ad8\u4f4d1\uff09\u76f4\u63a5\u76f8\u4e58\u3002<\/li>\n\n\n\n<li>\u7ed3\u679c\u53ef\u80fd\u5305\u542b\u6bd4\u6807\u51c6\u5c3e\u6570\u591a\u51fa\u7684\u4e00\u4e9b\u4f4d\uff0c\u9700\u8981\u8fdb\u884c\u89c4\u683c\u5316\u5904\u7406\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"24-\u89c4\u683c\u5316\u7ed3\u679c\">2.4 \u89c4\u683c\u5316\u7ed3\u679c<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e58\u79ef\u7684\u5c3e\u6570\u53ef\u80fd\u9700\u8981\u89c4\u683c\u5316\uff08\u5982\u679c\u4e58\u79ef\u7684\u6700\u9ad8\u6709\u6548\u4f4d\u662f2\u4f4d\u800c\u4e0d\u662f1\u4f4d\uff09\uff0c\u8fd9\u901a\u5e38\u9700\u8981\u5bf9\u5c3e\u6570\u8fdb\u884c\u53f3\u79fb\u4e00\u4f4d\uff0c\u540c\u65f6\u589e\u52a0\u6307\u6570\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"25-\u820d\u5165\u548c\u6ea2\u51fa\u5904\u7406\">2.5 \u820d\u5165\u548c\u6ea2\u51fa\u5904\u7406<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5bf9\u4e58\u79ef\u7684\u5c3e\u6570\u8fdb\u884c\u9002\u5f53\u7684\u820d\u5165\u4ee5\u7b26\u5408\u7cbe\u5ea6\u8981\u6c42\u3002<\/li>\n\n\n\n<li>\u68c0\u67e5\u662f\u5426\u53d1\u751f\u6307\u6570\u6ea2\u51fa\u6216\u4e0b\u6ea2\uff0c\u5e76\u6839\u636e\u9700\u8981\u5904\u7406\u6ea2\u51fa\u4e3a\u65e0\u7a77\u5927\uff0c\u6216\u4e0b\u6ea2\u4e3a\u96f6\u6216\u6b21\u6b63\u89c4\u6570\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"3-\u6d6e\u70b9\u6570\u76f8\u9664\u8fd0\u7b97\u7684\u7ec6\u8282\">3. \u6d6e\u70b9\u6570\u76f8\u9664\u8fd0\u7b97\u7684\u7ec6\u8282<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"31-\u7b26\u53f7\u4f4d\u7684\u5904\u7406\">3.1 \u7b26\u53f7\u4f4d\u7684\u5904\u7406<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u4e0e\u4e58\u6cd5\u7c7b\u4f3c\uff0c\u6d6e\u70b9\u6570\u9664\u6cd5\u7684\u7b26\u53f7\u4f4d\u7531\u88ab\u9664\u6570\u548c\u9664\u6570\u7684\u7b26\u53f7\u4f4d\u51b3\u5b9a\u3002<strong>\u7b26\u53f7\u76f8\u540c\u5219\u5546\u4e3a\u6b63\uff0c\u7b26\u53f7\u4e0d\u540c\u5219\u5546\u4e3a\u8d1f<\/strong>\u3002<\/li>\n\n\n\n<li>\u8ba1\u7b97\u65b9\u6cd5\u4ecd\u7136\u662f\u7b26\u53f7\u4f4d\u7684\u5f02\u6216\u8fd0\u7b97\uff1a<code>sign_result = sign_a XOR sign_b<\/code>\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"32-\u6307\u6570\u7684\u76f8\u51cf\">3.2 \u6307\u6570\u7684\u76f8\u51cf<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9664\u6cd5\u7684\u6307\u6570\u90e8\u5206\u7531\u88ab\u9664\u6570\u7684\u6307\u6570\u51cf\u53bb\u9664\u6570\u7684\u6307\u6570\uff0c\u518d\u52a0\u4e0a\u504f\u79fb\u91cf\uff08Bias\uff09\u3002<\/li>\n\n\n\n<li>\u8ba1\u7b97\u516c\u5f0f\uff1a<code>exponent_result = (exponent_a - exponent_b) + Bias<\/code>\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"33-\u5c3e\u6570\u7684\u76f8\u9664\">3.3 \u5c3e\u6570\u7684\u76f8\u9664<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u88ab\u9664\u6570\u7684\u5c3e\u6570\u9664\u4ee5\u9664\u6570\u7684\u5c3e\u6570\uff0c\u8ba1\u7b97\u5546\u7684\u5c3e\u6570\u3002<\/li>\n\n\n\n<li>\u4e0e\u4e58\u6cd5\u4e0d\u540c\u7684\u662f\uff0c\u9664\u6cd5\u53ef\u80fd\u4f1a\u4ea7\u751f\u4e00\u4e2a\u9700\u8981\u5de6\u79fb\u7684\u7ed3\u679c\u5c3e\u6570\uff0c\u56e0\u6b64\u9700\u8981\u5904\u7406\u5c3e\u6570\u89c4\u683c\u5316\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"34-\u89c4\u683c\u5316\u7ed3\u679c\">3.4 \u89c4\u683c\u5316\u7ed3\u679c<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u89c4\u683c\u5316\u8fc7\u7a0b\u786e\u4fdd\u7ed3\u679c\u7684\u5c3e\u6570\u5728\u6807\u51c6\u8303\u56f4\u5185\u3002\u5982\u679c\u9664\u6cd5\u7ed3\u679c\u5c3e\u6570\u7684\u6700\u9ad8\u6709\u6548\u4f4d\u5c0f\u4e8e1\uff0c\u5219\u9700\u8981\u5bf9\u5c3e\u6570\u8fdb\u884c\u5de6\u79fb\uff0c\u540c\u65f6\u51cf\u5c11\u6307\u6570\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"35-\u820d\u5165\u548c\u6ea2\u51fa\u5904\u7406\">3.5 \u820d\u5165\u548c\u6ea2\u51fa\u5904\u7406<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5c3e\u6570\u8fdb\u884c\u9002\u5f53\u7684\u820d\u5165\u3002<\/li>\n\n\n\n<li>\u68c0\u67e5\u662f\u5426\u53d1\u751f\u6307\u6570\u6ea2\u51fa\u6216\u4e0b\u6ea2\uff0c\u5e76\u6839\u636e\u9700\u8981\u5904\u7406\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"4-\u7ec4\u5408\u6700\u7ec8\u7ed3\u679c\">4. \u7ec4\u5408\u6700\u7ec8\u7ed3\u679c<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6700\u7ec8\u7684\u7b26\u53f7\u3001\u6307\u6570\u548c\u5c3e\u6570\u7ecf\u8fc7\u5904\u7406\u540e\u91cd\u65b0\u7ec4\u5408\u6210\u4e00\u4e2a\u7b26\u5408IEEE 754\u6807\u51c6\u7684\u6d6e\u70b9\u6570\uff0c\u5e76\u8fd4\u56de\u8fd9\u4e2a\u7ed3\u679c\u3002<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u603b\u7ed3-1\">\u603b\u7ed3<\/h3>\n\n\n\n<p>\u6d6e\u70b9\u6570\u7684\u4e58\u6cd5\u548c\u9664\u6cd5\u8fd0\u7b97\u867d\u7136\u76f8\u5bf9\u52a0\u6cd5\u548c\u51cf\u6cd5\u6765\u8bf4\u7b80\u5355\u4e00\u4e9b\uff0c\u4f46\u4ecd\u7136\u6d89\u53ca\u7b26\u53f7\u4f4d\u5904\u7406\u3001\u6307\u6570\u8ba1\u7b97\u3001\u5c3e\u6570\u8fd0\u7b97\u3001\u89c4\u683c\u5316\u548c\u820d\u5165\u7b49\u591a\u4e2a\u6b65\u9aa4\u3002\u8ba1\u7b97\u673a\u901a\u8fc7\u786c\u4ef6\u6d6e\u70b9\u8fd0\u7b97\u5355\u5143\uff08FPU\uff09\u5b9e\u73b0\u8fd9\u4e9b\u8fd0\u7b97\u7684\u9ad8\u6548\u5904\u7406\uff0c\u4f7f\u5f97\u8fd9\u4e9b\u590d\u6742\u7684\u64cd\u4f5c\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u80fd\u591f\u5feb\u901f\u5b8c\u6210\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6d6e\u70b9\u6570\u7684\u52a0\u6cd5\u548c\u51cf\u6cd5\u8fd0\u7b97\u662f\u8ba1\u7b97\u673a\u4e2d\u6700\u5e38\u89c1\u4e5f\u662f\u6700\u590d\u6742\u7684\u8fd0\u7b97\u4e4b\u4e00\u3002\u7531\u4e8e\u6d6e\u70b9\u6570\u7684\u5185\u90e8\u8868\u793a\u7531\u7b26\u53f7\uff08Sign\uff09\u3001\u6307\u6570\uff08Ex &hellip; <a href=\"https:\/\/www.wyrcad.com\/?p=2349\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c\u6d6e\u70b9\u6570\u8fd0\u7b97\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[27,17],"class_list":["post-2349","post","type-post","status-publish","format-standard","hentry","category-bianchengyuandi","tag-peixun","tag-biancheng"],"_links":{"self":[{"href":"https:\/\/www.wyrcad.com\/index.php?rest_route=\/wp\/v2\/posts\/2349","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wyrcad.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wyrcad.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wyrcad.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wyrcad.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2349"}],"version-history":[{"count":1,"href":"https:\/\/www.wyrcad.com\/index.php?rest_route=\/wp\/v2\/posts\/2349\/revisions"}],"predecessor-version":[{"id":2350,"href":"https:\/\/www.wyrcad.com\/index.php?rest_route=\/wp\/v2\/posts\/2349\/revisions\/2350"}],"wp:attachment":[{"href":"https:\/\/www.wyrcad.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wyrcad.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2349"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wyrcad.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}