{"id":6,"date":"2005-12-17T04:24:55","date_gmt":"2005-12-17T12:24:55","guid":{"rendered":"http:\/\/www.awadallah.com\/blog\/?p=6"},"modified":"2005-12-17T04:24:55","modified_gmt":"2005-12-17T12:24:55","slug":"6","status":"publish","type":"post","link":"https:\/\/www.awadallah.com\/blog\/6\/","title":{"rendered":"Funny Google rounding error &#8230;"},"content":{"rendered":"<p>Try this search on Google: 1 &#8211; 0.9 &#8211; 0.1<\/p>\n<p>the answer they give is: <strong><font size=\"4\">1 &#8211; 0.9 &#8211; 0.1 = -2.77555756 \u00d7 10<sup>-17<\/sup><\/font><\/strong><\/p>\n<p><font size=\"2\">of course the right answer is zero, which is what Yahoo Search gives:<\/font><\/p>\n<p><strong><font size=\"3\">1 &#8211; 0.9 &#8211; 0.1 = 0<\/font><\/strong><\/p>\n<p><font size=\"2\">to illustrate the problem with Google rounding: <\/font><\/p>\n<p><strong><font size=\"4\">1 \/ ((1 &#8211; 0.9 &#8211; 0.1) * (10^17)) = -0.36028797<\/font><\/strong><\/p>\n<p>when the right answer should be infinity, however yahoo gives this same wrong answer too:<\/p>\n<p><strong><font size=\"3\">1\/((1 &#8211; 0.9 &#8211; 0.1) * (10^17)) = -0.3602879702<\/font><\/strong><\/p>\n<p><font size=\"3\">&#8212; amr<\/font><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Try this search on Google: 1 &#8211; 0.9 &#8211; 0.1 the answer they give is: 1 &#8211; 0.9 &#8211; 0.1 = -2.77555756 \u00d7 10-17 of course the right answer is zero, which is what Yahoo Search gives: 1 &#8211; 0.9 &#8211; 0.1 = 0 to illustrate the problem with Google rounding: 1 \/ ((1 &#8211; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6","post","type-post","status-publish","format-standard","hentry","category-work"],"_links":{"self":[{"href":"https:\/\/www.awadallah.com\/blog\/wp-json\/wp\/v2\/posts\/6","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.awadallah.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.awadallah.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.awadallah.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.awadallah.com\/blog\/wp-json\/wp\/v2\/comments?post=6"}],"version-history":[{"count":0,"href":"https:\/\/www.awadallah.com\/blog\/wp-json\/wp\/v2\/posts\/6\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.awadallah.com\/blog\/wp-json\/wp\/v2\/media?parent=6"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.awadallah.com\/blog\/wp-json\/wp\/v2\/categories?post=6"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.awadallah.com\/blog\/wp-json\/wp\/v2\/tags?post=6"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}