{"id":216470,"date":"2020-11-21T20:45:39","date_gmt":"2020-11-21T12:45:39","guid":{"rendered":"http:\/\/4563.org\/?p=216470"},"modified":"2020-11-21T20:45:39","modified_gmt":"2020-11-21T12:45:39","slug":"mysql-%e4%b8%ad%e6%9c%89%e5%be%88%e5%a4%9a-10000000001-%e5%92%8c-0999999999996-%e7%9a%84%e6%95%b0%e6%8d%ae","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=216470","title":{"rendered":"MySQL \u4e2d\u6709\u5f88\u591a.10000000001 \u548c.0999999999996 \u7684\u6570\u636e"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  MySQL \u4e2d\u6709\u5f88\u591a.10000000001 \u548c.0999999999996 \u7684\u6570\u636e               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lafuerza <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u7ed9\u7532\u65b9\u505a\u6570\u636e\u6e05\u6d17\u548c\u6cbb\u7406\uff0c\u5e93\u4e2d\u67d0 varchar \u7c7b\u578b\u7684\u5b57\u6bb5\u4e2d\u6709\u5f88\u591a\u7c7b\u4f3c.10000000001 \u548c.0999999999999 \u7684\u6570\u636e\uff0c\u672c\u5e94\u90fd\u662f.1 \u624d\u5bf9\uff0c\u6bd4\u5982\uff1a<\/p>\n<p>001.100000000000000001\uff0c\u5e94\u8be5\u662f 1.1 \uff1b<br \/>005.099999999999999996\uff0c\u5e94\u8be5\u662f 5.1 \uff1b<br \/>\u8fd8\u6709\u4e0d\u77e5\u9053\u4e3a\u4ec0\u4e48 1 \u90fd\u53d8\u6210\u4e86 001 \uff08 2 \u53d8\u6210 002 \u30013 \u53d8\u6210 003 \u30014 \u53d8\u6210 004 \u7b49\uff09\u3002<\/p>\n<p>\u4e4b\u6240\u4ee5\u91c7\u7528\u00a0varchar\uff0c\u662f\u56e0\u4e3a\u8be5\u5b57\u6bb5\u8868\u793a\u4e00\u79cd\u5c42\u7ea7\u7ed3\u6784\uff0c\u6bd4\u5982 1.1 \u4ee3\u8868\u7b2c\u4e00\u7ae0\u7b2c\u4e00\u8282\uff0c5.1 \u4ee3\u8868\u7b2c\u4e94\u7ae0\u7b2c\u4e94\u8282\uff0c6.1.2 \u4ee3\u8868\u7b2c\u516d\u7ae0\u7b2c\u4e00\u8282\u7b2c\u4e8c\u5c0f\u8282\uff0c\u4f46\u56e0\u4e3a\u6ca1\u6709\u539f\u6765\u505a\u8be5\u9879\u76ee\u7684\u516c\u53f8\u7559\u4e0b\u7684\u6587\u6863\uff0c\u6240\u4ee5\u6ca1\u529e\u6cd5\u77e5\u9053\u8fd9\u4e9b\u6570\u636e\u662f\u600e\u4e48\u5b58\u50a8\u5230 MySQL \u4e2d\u7684\uff0c\u53ea\u77e5\u9053\u539f\u5148\u5f00\u53d1\u7528\u7684 Java \u3002<\/p>\n<p>\u53bb Google \u82f1\u6587\u641c\u7d22\uff0c\u4e5f\u6ca1\u627e\u5230\u76f8\u5173\u5185\u5bb9\uff0c\u6709\u5927\u4f6c\u9047\u5230\u8fc7\u7684\u5417\uff1f      <\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>2<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4398076\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Xusually <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7a0b\u5e8f\u5904\u7406\u6570\u636e\u7684\u65f6\u5019\u5f53\u4f5c float\/double \u5904\u7406\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4398077\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zhangysh1995 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6d6e\u70b9\u6570\u5b58\u50a8\u9650\u5236\uff0c\u53ef\u4ee5\u5f3a\u5236\u5c0f\u6570\u70b9\u4f4d\u6570\u8f6c\u6362\u3002<br \/>\u7528 CAST \u8f6c\u6362\u6210 Decimal\uff0chttps:\/\/dev.mysql.com\/doc\/refman\/8.0\/en\/cast-functions.html#function_cast                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>MySQL \u4e2d\u6709\u5f88\u591a.100000&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/216470"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=216470"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/216470\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=216470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=216470"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=216470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}