{"id":5220,"date":"2019-08-21T08:13:16","date_gmt":"2019-08-21T00:13:16","guid":{"rendered":"http:\/\/www.hefeiyu.com\/?p=5220"},"modified":"2019-08-21T08:13:16","modified_gmt":"2019-08-21T00:13:16","slug":"t100-%e5%87%ad%e8%af%81%e6%8a%a5%e8%a1%a8%e5%b0%8f%e6%95%b0%e4%bd%8d%e6%9c%89%e5%a4%9a%e5%b0%91%e5%88%99%e6%98%be%e7%a4%ba%e5%a4%9a%e5%b0%91%e4%bd%8d","status":"publish","type":"post","link":"https:\/\/www.hefeiyu.com\/?p=5220","title":{"rendered":"T100\u2014\u2014\u51ed\u8bc1\u62a5\u8868\u5c0f\u6570\u4f4d\u6709\u591a\u5c11\u5219\u663e\u793a\u591a\u5c11\u4f4d"},"content":{"rendered":"<p>\u76ee\u7684\uff1a\u628a\u5c0f\u6570\u4f4d\u540e\u9762\u76840\u622a\u53d6\u6389\uff0c\u6709\u591a\u5c11\u94b1\u4f4d\u5c31\u663e\u793a\u591a\u5c11\u4f4d\uff0c\u6700\u540e\u76840\u53bb\u6389<\/p>\n<pre class=\"pure-highlightjs\"><code class=\"null\">PRIVATE FUNCTION cxmt630_g01__delfloat(p_num)\r\nDEFINE p_num       LIKE bmfb_t.bmfb011\r\nDEFINE p_str       STRING\r\nDEFINE l_float     STRING\r\nDEFINE l_int       STRING\r\nDEFINE l_count     INTEGER\r\nDEFINE l_length    INTEGER\r\nDEFINE l_float_length    INTEGER\r\nDEFINE l_i         INTEGER\r\n#\u7d44\u5408bmfb011\/bmfb012\r\n   LET p_str = p_num\r\n   LET l_count = p_str.getIndexOf(\".\",1)\r\n   LET l_length = p_str.getLength()\r\n   LET l_int = p_str.subString(1,l_count-1)\r\n   LET l_float = p_str.subString(l_count+1,l_length)\r\n   LET l_float_length = l_float.getLength()\r\n   FOR l_i = 1 TO l_float_length\r\n      IF l_float.subString(l_float_length+1-l_i,l_float_length+1-l_i) &lt;&gt; '0' THEN\r\n         EXIT FOR\r\n      END IF\r\n   END FOR\r\n   IF l_i &lt; l_float_length+1 THEN\r\n      LET l_float = l_float.subString(1,l_float_length+1-l_i)\r\n      LET p_str = l_int || \".\" || l_float\r\n   ELSE\r\n      LET p_str = l_int\r\n   END IF\r\n   RETURN p_str\r\nEND FUNCTION<\/code><\/pre>\n<p>&nbsp;<\/p>\n<p>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\uff1a<a href=\"https:\/\/www.hefeiyu.com\">\u8d6b\u975e\u57df<\/a> &raquo; <a href=\"https:\/\/www.hefeiyu.com\/?p=5220\">T100\u2014\u2014\u51ed\u8bc1\u62a5\u8868\u5c0f\u6570\u4f4d\u6709\u591a\u5c11\u5219\u663e\u793a\u591a\u5c11\u4f4d<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>\u76ee\u7684\uff1a\u628a\u5c0f\u6570\u4f4d\u540e\u9762\u76840\u622a\u53d6\u6389\uff0c\u6709\u591a\u5c11\u94b1\u4f4d\u5c31\u663e\u793a\u591a\u5c11\u4f4d\uff0c\u6700\u540e\u76840\u53bb\u6389 PRIVATE FUNCTION cxmt630_g01__delfloat(p_num) DEFINE p_num LIKE bmfb_t.bmfb011 DEFINE p_str [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[490],"tags":[89,766,767],"class_list":["post-5220","post","type-post","status-publish","format-standard","hentry","category-490","tag-define","tag-integer","tag-num"],"_links":{"self":[{"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts\/5220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5220"}],"version-history":[{"count":1,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts\/5220\/revisions"}],"predecessor-version":[{"id":5221,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=\/wp\/v2\/posts\/5220\/revisions\/5221"}],"wp:attachment":[{"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hefeiyu.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}