{"id":1604,"date":"2025-03-15T23:39:52","date_gmt":"2025-03-15T15:39:52","guid":{"rendered":"http:\/\/codermr.com\/?p=1604"},"modified":"2025-03-15T23:43:04","modified_gmt":"2025-03-15T15:43:04","slug":"%e6%b5%ae%e7%82%b9%e6%95%b0%e5%ae%9e%e9%99%85%e5%ba%94%e7%94%a8%e5%9c%ba%e6%99%af%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/codermr.com\/index.php\/2025\/03\/15\/%e6%b5%ae%e7%82%b9%e6%95%b0%e5%ae%9e%e9%99%85%e5%ba%94%e7%94%a8%e5%9c%ba%e6%99%af%ef%bc%9f\/","title":{"rendered":"\u6d6e\u70b9\u6570\u5b9e\u9645\u5e94\u7528\u573a\u666f\uff1f"},"content":{"rendered":"\n<p>Java \u7a0b\u5e8f\u5458\u5728\u6d89\u53ca\u91d1\u989d\u7684\u8ba1\u7b97\u65f6\uff0c\u4e00\u822c\u90fd\u4f1a\u4f7f\u7528 BigDecimal \u7c7b\u578b\uff0c\u65e0\u5b83\uff0c\u4f7f\u7528\u6d6e\u70b9\u6570\uff08float\u3001double\uff09\u592a\u4e0d\u597d\u9a7e\u9a6d\u4e86\uff0c\u5f88\u5bb9\u6613\u51fa\u73b0\u5404\u79cd\u60f3\u5230\u60f3\u4e0d\u5230\u7684\u95ee\u9898\uff01<\/p>\n\n\n\n<p>\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u5047\u5982\u6211\u4eec\u6709\u4e00\u5f20\u8868\uff0c\u7528\u6765\u5b58\u50a8\u7528\u6237\u7684\u79ef\u5206\uff0c\u8868\u5b9a\u4e49\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE TABLE `f` (\n\n`f1` FLOAT(10,2) DEFAULT NULL\n\n) ENGINE=INNODB DEFAULT CHARSET=utf-8<\/code><\/pre>\n\n\n\n<p>\u7136\u540e\u5411\u8fd9\u4e2a\u8868\u91cc\u63d2\u5165 131072.32 \u7684\u79ef\u5206\u503c\uff0c\u5982\u4e0b\u6240\u793a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>INSERT INTO f VALUE (131072.32);<\/code><\/pre>\n\n\n\n<p>\u518d\u8fdb\u884c\u67e5\u8be2\uff08\u6211\u7684PC\u4e0a\u4eb2\u81ea\u6d4b\u8bd5\u7684\uff09\uff1a<\/p>\n\n\n\n<p>SELECT * FROM f;<\/p>\n\n\n\n<p>\u7ed3\u679c\u662f\u591a\u5c11\u5462\uff1f<\/p>\n\n\n\n<p>\u4f60\u4f1a\u53d1\u73b0\u4e0d\u662f 131072.32 \uff0c\u800c\u662f 131072.31 \uff0cwhat the Fuck \uff01\uff1f\u600e\u4e48\u56de\u4e8b\uff1f<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2025\/03\/image-19.png\"><img loading=\"lazy\" decoding=\"async\" width=\"208\" height=\"67\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2025\/03\/image-19.png\" alt=\"\" class=\"wp-image-1606\"\/><\/a><\/figure>\n\n\n\n<p>\u6211\u624b\u52a8\u5c06\u6570\u636e\u5e93\u4e2d\u8fd9\u4e2a 131072.31 \u6539\u6210 131072.32\uff0c\u7136\u540e\u4fdd\u5b58\uff0c\u5237\u65b0\u4e00\u4e0b\uff0c\u53d1\u73b0\u8fd9\u4e2a\u503c\u8fd8\u662f 131072.31 \uff01<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2025\/03\/image-20.png\"><img loading=\"lazy\" decoding=\"async\" width=\"393\" height=\"157\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2025\/03\/image-20.png\" alt=\"\" class=\"wp-image-1607\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2025\/03\/image-20.png 393w, http:\/\/codermr.com\/wp-content\/uploads\/2025\/03\/image-20-300x120.png 300w\" sizes=\"(max-width: 393px) 100vw, 393px\" \/><\/a><\/figure>\n\n\n\n<p>\u90a3\u4e48\uff0c\u6211\u4e0d\u7528 sql \u76f4\u63a5\u5f80\u6570\u636e\u5e93\u91cc\u63d2\u5165\uff0c\u800c\u662f\u7528\u4ee3\u7801\u5f80\u6570\u636e\u5e93\u63d2\u5165\u4e00\u6761\u503c\u662f 131072.31 \u7684\u6570\u636e\u5462\uff1f<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2025\/03\/image-21.png\"><img loading=\"lazy\" decoding=\"async\" width=\"580\" height=\"241\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2025\/03\/image-21.png\" alt=\"\" class=\"wp-image-1608\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2025\/03\/image-21.png 580w, http:\/\/codermr.com\/wp-content\/uploads\/2025\/03\/image-21-300x125.png 300w\" sizes=\"(max-width: 580px) 100vw, 580px\" \/><\/a><\/figure>\n\n\n\n<p>\u53d1\u73b0\u6570\u636e\u5e93\u91cc\u5b58\u7684\u8fd8\u662f 131072.31 \uff01\uff01<\/p>\n\n\n\n<p>\u4e3a\u4ec0\u4e48\u5462\uff1f<\/p>\n\n\n\n<p>\u6211\u5c31\u76f4\u63a5\u8bf4\u5427\uff0c\u5176\u5b9e\u8ddf\u8fd9\u4e2a\u5b57\u6bb5\u7684\u7c7b\u578b\u6709\u5173\uff0c\u8fd9\u4e2a\u5b57\u6bb5\u662f\u8fd9\u6837\u4e00\u79cd\u683c\u5f0f\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE TABLE `f` (\n\n`f1` FLOAT(10,2) DEFAULT NULL\n\n) ENGINE=INNODB DEFAULT CHARSET=utf-8<\/code><\/pre>\n\n\n\n<p>\u5982\u4e0a\uff0c\u770b\u5230\u6ca1\u6709\uff0cFLOAT(10,2) \u662f\u4ec0\u4e48\u610f\u601d\u5462\uff1f<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">float(M, D) \u4e2d M \u548c D \u7684\u542b\u4e49\uff1f<\/h2>\n\n\n\n<p>FLOAT(10,2) \u8868\u793a\u4e00\u5171\u80fd\u5b58 M \u4f4d\uff0c\u5176\u4e2d\u5c0f\u6570\u70b9\u540e\u5360 D \u4f4d\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f\uff0c\u662f\u5c0f\u6570\u70b9\u540e\u9762\u5360 D \u4f4d\uff0c\u4e0d\u662f\u7cbe\u786e\u5230\u5c0f\u6570\u70b9\u540e\u9762 D \u4f4d\uff01\u4e5f\u4e0d\u662f\u53ea\u5b58\u50a8\u5c0f\u6570\u70b9\u540e\u9762 D \u4f4d\uff01<\/p>\n\n\n\n<p>\u5982\u679c\u4f60\u5c06\u8fd9\u4e2a\u5b57\u6bb5\u6539\u6210 FLOAT(10,3)  \uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2025\/03\/image-22.png\"><img loading=\"lazy\" decoding=\"async\" width=\"533\" height=\"86\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2025\/03\/image-22.png\" alt=\"\" class=\"wp-image-1609\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2025\/03\/image-22.png 533w, http:\/\/codermr.com\/wp-content\/uploads\/2025\/03\/image-22-300x48.png 300w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><\/a><\/figure>\n\n\n\n<p>\u4f60\u518d\u6b21\u67e5\u8be2\uff0c\u4f1a\u53d1\u73b0\u6570\u636e\u5e93\u4e2d 131072.31 \u8fd9\u4e2a\u6570\u53d8\u6210\u4e86\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2025\/03\/image-23.png\"><img loading=\"lazy\" decoding=\"async\" width=\"260\" height=\"77\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2025\/03\/image-23.png\" alt=\"\" class=\"wp-image-1610\"\/><\/a><\/figure>\n\n\n\n<p>\u5982\u679c\u4f60\u5c06\u8fd9\u4e2a\u5b57\u6bb5\u6539\u6210 FLOAT(10,4)  \uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"http:\/\/codermr.com\/wp-content\/uploads\/2025\/03\/image-24.png\"><img loading=\"lazy\" decoding=\"async\" width=\"491\" height=\"232\" src=\"http:\/\/codermr.com\/wp-content\/uploads\/2025\/03\/image-24.png\" alt=\"\" class=\"wp-image-1612\" srcset=\"http:\/\/codermr.com\/wp-content\/uploads\/2025\/03\/image-24.png 491w, http:\/\/codermr.com\/wp-content\/uploads\/2025\/03\/image-24-300x142.png 300w\" sizes=\"(max-width: 491px) 100vw, 491px\" \/><\/a><\/figure>\n\n\n\n<p>\u4e5f\u5c31\u662f\u8bf4\uff0cfloat(M, D) \u4e2d\u7684 D \u63a7\u5236\u7684\u4e8b\u5c0f\u6570\u70b9\u540e\u9762\u201c\u663e\u793a\u201d\u51e0\u4f4d\uff0c\u6709\u53ef\u80fd\u5b9e\u9645\u5b58\u7684\u503c\u5c0f\u6570\u70b9\u540e\u9762\u597d\u591a\u4f4d\uff0c\u4f46\u662f\u53ea\u663e\u793a D \u4f4d\uff01<\/p>\n\n\n\n<p>131072.32 \u4e2d\u7684\u5c0f\u6570\u90e8\u5206 0.32 \u6ca1\u6cd5\u7cbe\u786e\u7528\u4e8c\u8fdb\u5236\u5c0f\u6570\u8868\u793a\uff1a<\/p>\n\n\n\n<p>0.32D \u7ea6\u7b49\u4e8e 0.0101B \uff0c\u800c  0.0101B \u518d\u8f6c\u6210\u5341\u8fdb\u5236\u5c0f\u6570\u662f 0.3125D \uff0c\u8fd9\u5c31\u5bfc\u81f4\u8bef\u5dee\u4e86\uff01<\/p>\n\n\n\n<p>\u53e6\u5916\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>0.32D \u7ea6\u7b49\u4e8e 0.0101000111101011100001010001111010111000010100011111.... \n0.0101000111101011100001010001111010111000010100011111 \u8f6c\u6362\u6210\u5341\u8fdb\u5236\u5c0f\u6570\u662f 0.32000000000000006<\/code><\/pre>\n\n\n\n<p><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">float(M, D) \u4e2d M \u7684\u8bbe\u7f6e\uff0c\u4e5f\u4f1a\u5f71\u54cd\u6570\u636e\u5c55\u793a\u548c\u51c6\u786e\u6027\uff01<\/mark><\/strong>\u5c0f\u6570\u70b9\u524d\u9762\u7684\u6570\u5b57\u8d85\u8fc7 M \u7684\u4f4d\u6570\u9650\u5236\u4e5f\u53ef\u80fd\u4f1a\u51fa\u73b0\u8bef\u5dee\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e3e\u4f8b<\/h2>\n\n\n\n<p>\u6d6e\u70b9\u6570\u76f8\u52a0\uff0c\u968f\u7740\u6b21\u6570\u8d8a\u6765\u8d8a\u591a\uff0c\u8bef\u5dee\u4f1a\u8d8a\u6765\u8d8a\u5927\uff01<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public static void test2\u8bef\u5dee\u7d2f\u8ba1\u8d8a\u6765\u8d8a\u591a() {\n    float a1 = 0f;\n    for (int i = 0; i &lt; 1000000; i++) {\n        a1 = a1 + 0.3f;\n    } \/\/ \u7cbe\u786e\u7684\u7ed3\u679c\u5e94\u8be5\u662f 300000\n    System.out.println(a1);\/\/ 299546.7\n    System.out.printf(\"%.20f%n\", a1);\/\/ 299546.68750000000000000000\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Java \u7a0b\u5e8f\u5458\u5728\u6d89\u53ca\u91d1\u989d\u7684\u8ba1\u7b97\u65f6\uff0c\u4e00\u822c\u90fd\u4f1a\u4f7f\u7528 BigDecimal \u7c7b\u578b\uff0c\u65e0\u5b83\uff0c\u4f7f\u7528\u6d6e\u70b9\u6570\uff08float\u3001d&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1605,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6d6e\u70b9\u6570\u5b9e\u9645\u5e94\u7528\u573a\u666f\uff1f - \u7801\u5148\u751f\u7684\u535a\u5ba2<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/codermr.com\/index.php\/2025\/03\/15\/\u6d6e\u70b9\u6570\u5b9e\u9645\u5e94\u7528\u573a\u666f\uff1f\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6d6e\u70b9\u6570\u5b9e\u9645\u5e94\u7528\u573a\u666f\uff1f - \u7801\u5148\u751f\u7684\u535a\u5ba2\" \/>\n<meta property=\"og:description\" content=\"Java \u7a0b\u5e8f\u5458\u5728\u6d89\u53ca\u91d1\u989d\u7684\u8ba1\u7b97\u65f6\uff0c\u4e00\u822c\u90fd\u4f1a\u4f7f\u7528 BigDecimal \u7c7b\u578b\uff0c\u65e0\u5b83\uff0c\u4f7f\u7528\u6d6e\u70b9\u6570\uff08float\u3001d...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/codermr.com\/index.php\/2025\/03\/15\/\u6d6e\u70b9\u6570\u5b9e\u9645\u5e94\u7528\u573a\u666f\uff1f\/\" \/>\n<meta property=\"og:site_name\" content=\"\u7801\u5148\u751f\u7684\u535a\u5ba2\" \/>\n<meta property=\"article:published_time\" content=\"2025-03-15T15:39:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-03-15T15:43:04+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/codermr.com\/wp-content\/uploads\/2025\/03\/\u6d6e\u70b9\u65703.png\" \/>\n\t<meta property=\"og:image:width\" content=\"774\" \/>\n\t<meta property=\"og:image:height\" content=\"714\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"\u7801\u5148\u751f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/mrcode2021\" \/>\n<meta name=\"twitter:site\" content=\"@mrcode2021\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u7801\u5148\u751f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/codermr.com\/index.php\/2025\/03\/15\/%e6%b5%ae%e7%82%b9%e6%95%b0%e5%ae%9e%e9%99%85%e5%ba%94%e7%94%a8%e5%9c%ba%e6%99%af%ef%bc%9f\/#article\",\"isPartOf\":{\"@id\":\"http:\/\/codermr.com\/index.php\/2025\/03\/15\/%e6%b5%ae%e7%82%b9%e6%95%b0%e5%ae%9e%e9%99%85%e5%ba%94%e7%94%a8%e5%9c%ba%e6%99%af%ef%bc%9f\/\"},\"author\":{\"name\":\"\u7801\u5148\u751f\",\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\"},\"headline\":\"\u6d6e\u70b9\u6570\u5b9e\u9645\u5e94\u7528\u573a\u666f\uff1f\",\"datePublished\":\"2025-03-15T15:39:52+00:00\",\"dateModified\":\"2025-03-15T15:43:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/codermr.com\/index.php\/2025\/03\/15\/%e6%b5%ae%e7%82%b9%e6%95%b0%e5%ae%9e%e9%99%85%e5%ba%94%e7%94%a8%e5%9c%ba%e6%99%af%ef%bc%9f\/\"},\"wordCount\":40,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\"},\"articleSection\":[\"JAVA\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/codermr.com\/index.php\/2025\/03\/15\/%e6%b5%ae%e7%82%b9%e6%95%b0%e5%ae%9e%e9%99%85%e5%ba%94%e7%94%a8%e5%9c%ba%e6%99%af%ef%bc%9f\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/codermr.com\/index.php\/2025\/03\/15\/%e6%b5%ae%e7%82%b9%e6%95%b0%e5%ae%9e%e9%99%85%e5%ba%94%e7%94%a8%e5%9c%ba%e6%99%af%ef%bc%9f\/\",\"url\":\"http:\/\/codermr.com\/index.php\/2025\/03\/15\/%e6%b5%ae%e7%82%b9%e6%95%b0%e5%ae%9e%e9%99%85%e5%ba%94%e7%94%a8%e5%9c%ba%e6%99%af%ef%bc%9f\/\",\"name\":\"\u6d6e\u70b9\u6570\u5b9e\u9645\u5e94\u7528\u573a\u666f\uff1f - \u7801\u5148\u751f\u7684\u535a\u5ba2\",\"isPartOf\":{\"@id\":\"http:\/\/codermr.com\/#website\"},\"datePublished\":\"2025-03-15T15:39:52+00:00\",\"dateModified\":\"2025-03-15T15:43:04+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/codermr.com\/index.php\/2025\/03\/15\/%e6%b5%ae%e7%82%b9%e6%95%b0%e5%ae%9e%e9%99%85%e5%ba%94%e7%94%a8%e5%9c%ba%e6%99%af%ef%bc%9f\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/codermr.com\/index.php\/2025\/03\/15\/%e6%b5%ae%e7%82%b9%e6%95%b0%e5%ae%9e%e9%99%85%e5%ba%94%e7%94%a8%e5%9c%ba%e6%99%af%ef%bc%9f\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/codermr.com\/index.php\/2025\/03\/15\/%e6%b5%ae%e7%82%b9%e6%95%b0%e5%ae%9e%e9%99%85%e5%ba%94%e7%94%a8%e5%9c%ba%e6%99%af%ef%bc%9f\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"http:\/\/codermr.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6d6e\u70b9\u6570\u5b9e\u9645\u5e94\u7528\u573a\u666f\uff1f\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/codermr.com\/#website\",\"url\":\"http:\/\/codermr.com\/\",\"name\":\"\u7801\u5148\u751f\u7684\u535a\u5ba2\",\"description\":\"\u6b22 \u8fce \u4e0b \u8f7d \u6211 \u5f00 \u53d1 \u7684 \u5404 \u7aef \u8f6f \u4ef6 \u548c APP\",\"publisher\":{\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/codermr.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf\",\"name\":\"\u7801\u5148\u751f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg\",\"contentUrl\":\"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg\",\"width\":400,\"height\":400,\"caption\":\"\u7801\u5148\u751f\"},\"logo\":{\"@id\":\"http:\/\/codermr.com\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/codermr.com\",\"https:\/\/twitter.com\/https:\/\/twitter.com\/mrcode2021\"],\"url\":\"http:\/\/codermr.com\/index.php\/author\/coderma\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u6d6e\u70b9\u6570\u5b9e\u9645\u5e94\u7528\u573a\u666f\uff1f - \u7801\u5148\u751f\u7684\u535a\u5ba2","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/codermr.com\/index.php\/2025\/03\/15\/\u6d6e\u70b9\u6570\u5b9e\u9645\u5e94\u7528\u573a\u666f\uff1f\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6d6e\u70b9\u6570\u5b9e\u9645\u5e94\u7528\u573a\u666f\uff1f - \u7801\u5148\u751f\u7684\u535a\u5ba2","og_description":"Java \u7a0b\u5e8f\u5458\u5728\u6d89\u53ca\u91d1\u989d\u7684\u8ba1\u7b97\u65f6\uff0c\u4e00\u822c\u90fd\u4f1a\u4f7f\u7528 BigDecimal \u7c7b\u578b\uff0c\u65e0\u5b83\uff0c\u4f7f\u7528\u6d6e\u70b9\u6570\uff08float\u3001d...","og_url":"http:\/\/codermr.com\/index.php\/2025\/03\/15\/\u6d6e\u70b9\u6570\u5b9e\u9645\u5e94\u7528\u573a\u666f\uff1f\/","og_site_name":"\u7801\u5148\u751f\u7684\u535a\u5ba2","article_published_time":"2025-03-15T15:39:52+00:00","article_modified_time":"2025-03-15T15:43:04+00:00","og_image":[{"width":774,"height":714,"url":"http:\/\/codermr.com\/wp-content\/uploads\/2025\/03\/\u6d6e\u70b9\u65703.png","type":"image\/png"}],"author":"\u7801\u5148\u751f","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/mrcode2021","twitter_site":"@mrcode2021","twitter_misc":{"\u4f5c\u8005":"\u7801\u5148\u751f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/codermr.com\/index.php\/2025\/03\/15\/%e6%b5%ae%e7%82%b9%e6%95%b0%e5%ae%9e%e9%99%85%e5%ba%94%e7%94%a8%e5%9c%ba%e6%99%af%ef%bc%9f\/#article","isPartOf":{"@id":"http:\/\/codermr.com\/index.php\/2025\/03\/15\/%e6%b5%ae%e7%82%b9%e6%95%b0%e5%ae%9e%e9%99%85%e5%ba%94%e7%94%a8%e5%9c%ba%e6%99%af%ef%bc%9f\/"},"author":{"name":"\u7801\u5148\u751f","@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf"},"headline":"\u6d6e\u70b9\u6570\u5b9e\u9645\u5e94\u7528\u573a\u666f\uff1f","datePublished":"2025-03-15T15:39:52+00:00","dateModified":"2025-03-15T15:43:04+00:00","mainEntityOfPage":{"@id":"http:\/\/codermr.com\/index.php\/2025\/03\/15\/%e6%b5%ae%e7%82%b9%e6%95%b0%e5%ae%9e%e9%99%85%e5%ba%94%e7%94%a8%e5%9c%ba%e6%99%af%ef%bc%9f\/"},"wordCount":40,"commentCount":0,"publisher":{"@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf"},"articleSection":["JAVA"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/codermr.com\/index.php\/2025\/03\/15\/%e6%b5%ae%e7%82%b9%e6%95%b0%e5%ae%9e%e9%99%85%e5%ba%94%e7%94%a8%e5%9c%ba%e6%99%af%ef%bc%9f\/#respond"]}]},{"@type":"WebPage","@id":"http:\/\/codermr.com\/index.php\/2025\/03\/15\/%e6%b5%ae%e7%82%b9%e6%95%b0%e5%ae%9e%e9%99%85%e5%ba%94%e7%94%a8%e5%9c%ba%e6%99%af%ef%bc%9f\/","url":"http:\/\/codermr.com\/index.php\/2025\/03\/15\/%e6%b5%ae%e7%82%b9%e6%95%b0%e5%ae%9e%e9%99%85%e5%ba%94%e7%94%a8%e5%9c%ba%e6%99%af%ef%bc%9f\/","name":"\u6d6e\u70b9\u6570\u5b9e\u9645\u5e94\u7528\u573a\u666f\uff1f - \u7801\u5148\u751f\u7684\u535a\u5ba2","isPartOf":{"@id":"http:\/\/codermr.com\/#website"},"datePublished":"2025-03-15T15:39:52+00:00","dateModified":"2025-03-15T15:43:04+00:00","breadcrumb":{"@id":"http:\/\/codermr.com\/index.php\/2025\/03\/15\/%e6%b5%ae%e7%82%b9%e6%95%b0%e5%ae%9e%e9%99%85%e5%ba%94%e7%94%a8%e5%9c%ba%e6%99%af%ef%bc%9f\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/codermr.com\/index.php\/2025\/03\/15\/%e6%b5%ae%e7%82%b9%e6%95%b0%e5%ae%9e%e9%99%85%e5%ba%94%e7%94%a8%e5%9c%ba%e6%99%af%ef%bc%9f\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/codermr.com\/index.php\/2025\/03\/15\/%e6%b5%ae%e7%82%b9%e6%95%b0%e5%ae%9e%e9%99%85%e5%ba%94%e7%94%a8%e5%9c%ba%e6%99%af%ef%bc%9f\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/codermr.com\/"},{"@type":"ListItem","position":2,"name":"\u6d6e\u70b9\u6570\u5b9e\u9645\u5e94\u7528\u573a\u666f\uff1f"}]},{"@type":"WebSite","@id":"http:\/\/codermr.com\/#website","url":"http:\/\/codermr.com\/","name":"\u7801\u5148\u751f\u7684\u535a\u5ba2","description":"\u6b22 \u8fce \u4e0b \u8f7d \u6211 \u5f00 \u53d1 \u7684 \u5404 \u7aef \u8f6f \u4ef6 \u548c APP","publisher":{"@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/codermr.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"http:\/\/codermr.com\/#\/schema\/person\/39016e15c79e4f02d1ed3a64688619bf","name":"\u7801\u5148\u751f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"http:\/\/codermr.com\/#\/schema\/person\/image\/","url":"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg","contentUrl":"http:\/\/codermr.com\/wp-content\/uploads\/2023\/02\/wukong.jpg","width":400,"height":400,"caption":"\u7801\u5148\u751f"},"logo":{"@id":"http:\/\/codermr.com\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/codermr.com","https:\/\/twitter.com\/https:\/\/twitter.com\/mrcode2021"],"url":"http:\/\/codermr.com\/index.php\/author\/coderma\/"}]}},"_links":{"self":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts\/1604"}],"collection":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/comments?post=1604"}],"version-history":[{"count":4,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts\/1604\/revisions"}],"predecessor-version":[{"id":1620,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/posts\/1604\/revisions\/1620"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/media\/1605"}],"wp:attachment":[{"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/media?parent=1604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/categories?post=1604"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/codermr.com\/index.php\/wp-json\/wp\/v2\/tags?post=1604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}