{"id":5223,"date":"2013-03-21T01:09:57","date_gmt":"2013-03-20T16:09:57","guid":{"rendered":"http:\/\/rentan.org\/blog\/?p=5223"},"modified":"2013-03-21T01:09:57","modified_gmt":"2013-03-20T16:09:57","slug":"dmonkey-bitwise-operation","status":"publish","type":"post","link":"https:\/\/rentan.org\/blog\/2013\/03\/21\/dmonkey-bitwise-operation\/","title":{"rendered":"DMonkey: \u30d3\u30c3\u30c8\u6f14\u7b97\u306b\u304a\u3051\u308b\u5c0f\u6570\u306e\u6271\u3044"},"content":{"rendered":"<p>JavaScript \u3067\u30d3\u30c3\u30c8\u6f14\u7b97\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u306b\u5c0f\u6570\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u3001\u5c0f\u6570\u90e8\u3092 0 \u65b9\u5411\u306b\u5207\u308a\u6368\u3066\u3066(round towards zero)\u300132\u30d3\u30c3\u30c8\u306e\u6574\u6570\u306b\u5909\u63db\u3057\u3066\u304b\u3089\u6f14\u7b97\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>DMonkey \u3067\u306f\u5c0f\u6570\u90e8\u3092\u6700\u8fd1\u63a5\u5076\u6570\u3078\u306e\u4e38\u3081(round half to even)\u3067\u6574\u6570\u5316\u3059\u308b\u305f\u3081\u3001\u6f14\u7b97\u7d50\u679c\u304c\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"prog_code javascript\">\r\n<code>alert (+1.5 | 0);   \/\/  2 \u203bJavaSciprt \u3067\u306f  1\r\nalert (0 | -1.5);   \/\/ -2 \u203bJavaSciprt \u3067\u306f -1<\/code>\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>JavaScript \u3067\u30d3\u30c3\u30c8\u6f14\u7b97\u306e\u30aa\u30da\u30e9\u30f3\u30c9\u306b\u5c0f\u6570\u3092\u6307\u5b9a\u3057\u305f\u5834\u5408\u3001\u5c0f\u6570\u90e8\u3092 0 \u65b9\u5411\u306b\u5207\u308a\u6368\u3066\u3066(round towards zero)\u300132\u30d3\u30c3\u30c8\u306e\u6574\u6570\u306b\u5909\u63db\u3057\u3066\u304b\u3089\u6f14\u7b97\u3055\u308c\u307e\u3059\u3002 DMonkey \u3067\u306f\u5c0f\u6570\u90e8\u3092\u6700\u8fd1\u63a5 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[640],"tags":[1191],"class_list":["post-5223","post","type-post","status-publish","format-standard","hentry","category-irvine","tag-dmonkey"],"_links":{"self":[{"href":"https:\/\/rentan.org\/blog\/wp-json\/wp\/v2\/posts\/5223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rentan.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rentan.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rentan.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rentan.org\/blog\/wp-json\/wp\/v2\/comments?post=5223"}],"version-history":[{"count":2,"href":"https:\/\/rentan.org\/blog\/wp-json\/wp\/v2\/posts\/5223\/revisions"}],"predecessor-version":[{"id":5225,"href":"https:\/\/rentan.org\/blog\/wp-json\/wp\/v2\/posts\/5223\/revisions\/5225"}],"wp:attachment":[{"href":"https:\/\/rentan.org\/blog\/wp-json\/wp\/v2\/media?parent=5223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rentan.org\/blog\/wp-json\/wp\/v2\/categories?post=5223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rentan.org\/blog\/wp-json\/wp\/v2\/tags?post=5223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}