
{"id":2161,"date":"2020-08-23T11:46:04","date_gmt":"2020-08-23T03:46:04","guid":{"rendered":"http:\/\/127.0.0.2\/?p=2161"},"modified":"2020-08-23T11:46:28","modified_gmt":"2020-08-23T03:46:28","slug":"2020java%e6%95%99%e7%a8%8b%ef%bc%9abigdecimal","status":"publish","type":"post","link":"https:\/\/www.9713job.com\/?p=2161","title":{"rendered":"2020java\u6559\u7a0b\uff1aBigDecimal"},"content":{"rendered":"<h3>BigDecimal<\/h3>\n<p>\u4f4d\u4e8ejava.Math\u5305\u4e2d<br \/>\n\u4f5c\u7528\uff1a\u7cbe\u786e\u8ba1\u7b97\u6d6e\u70b9\u6570<br \/>\n\u521b\u5efa\u65b9\u5f0f\uff1aBigDecimal big=new BigDecimal(&#8220;\u503c&#8221;);<br \/>\n\u65b9\u6cd5\uff1a<br \/>\nBigDecimal add(BigDecimal);\/\/\u52a0\u6cd5<br \/>\nBigDecimal subtract(BigDecimal);\/\/\u51cf\u6cd5<br \/>\nBigDecimal multiply(BigDecimal);\/\/\u4e58\u6cd5<\/p>\n<p>\u9664\u6cd5\uff1a<br \/>\nBigDecimal divide(BigDecimal,int scal,RoundingMode mode)<br \/>\n\u53c2\u6570scal\uff1a\u6307\u5b9a\u7cbe\u786e\u5230\u5c0f\u6570\u540e\u51e0\u4f4d<br \/>\n\u53c2\u6570mode\uff1a\u56db\u820d\u4e94\u5165\u6a21\u5f0f<br \/>\nup\uff1a\u820d\u5165\u6a21\u5f0f\u4ece\u96f6\u5f00\u59cb<br \/>\nROUND_HALF_UP:<br \/>\nROUND_HALF_DOWN:<br \/>\nROUND_HALF_EVEN:<\/p>\n","protected":false},"excerpt":{"rendered":"<p>BigDecimal \u4f4d\u4e8ejava.Math\u5305\u4e2d \u4f5c\u7528\uff1a\u7cbe\u786e\u8ba1\u7b97\u6d6e\u70b9\u6570 \u521b\u5efa\u65b9\u5f0f\uff1aBigDecimal big [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-2161","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.9713job.com\/index.php?rest_route=\/wp\/v2\/posts\/2161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.9713job.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.9713job.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.9713job.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.9713job.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2161"}],"version-history":[{"count":1,"href":"https:\/\/www.9713job.com\/index.php?rest_route=\/wp\/v2\/posts\/2161\/revisions"}],"predecessor-version":[{"id":2162,"href":"https:\/\/www.9713job.com\/index.php?rest_route=\/wp\/v2\/posts\/2161\/revisions\/2162"}],"wp:attachment":[{"href":"https:\/\/www.9713job.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.9713job.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.9713job.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}