
{"id":119,"date":"2005-09-27T15:09:42","date_gmt":"2005-09-27T15:09:42","guid":{"rendered":"http:\/\/www.starcoder.com\/wordpress\/?p=114"},"modified":"2021-10-30T20:03:29","modified_gmt":"2021-10-30T20:03:29","slug":"everything-you-wanted-to-know-about-floats-but-where-too-afraid-to-ask","status":"publish","type":"post","link":"https:\/\/www.starcoder.com\/wordpress\/2005\/09\/everything-you-wanted-to-know-about-floats-but-where-too-afraid-to-ask\/","title":{"rendered":"Everything you wanted to know about floats but where too afraid to ask&#8230;"},"content":{"rendered":"<p>There&#8217;s a <a href=\"http:\/\/ridiculousfish.com\/blog\/?p=24\">quite interesting blog post<\/a> over on Ridiculous Fish about how floats are formatted in memory and what kinds of numbers they can represent. This should be required reading for every Computer Science student. I wasn&#8217;t taught any of this at UCSB except for the mantissa\/exponent way of representing a float and that sometimes an integer stored in a float was not really an integer.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s a quite interesting blog post over on Ridiculous Fish about how floats are formatted in memory and what kinds of numbers they can represent. This should be required reading for every Computer Science student. I wasn&#8217;t taught any of this at UCSB except for the mantissa\/exponent way of representing a float and that sometimes [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-119","post","type-post","status-publish","format-standard","hentry","category-coding","post-preview"],"_links":{"self":[{"href":"https:\/\/www.starcoder.com\/wordpress\/wp-json\/wp\/v2\/posts\/119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.starcoder.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.starcoder.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.starcoder.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.starcoder.com\/wordpress\/wp-json\/wp\/v2\/comments?post=119"}],"version-history":[{"count":1,"href":"https:\/\/www.starcoder.com\/wordpress\/wp-json\/wp\/v2\/posts\/119\/revisions"}],"predecessor-version":[{"id":672,"href":"https:\/\/www.starcoder.com\/wordpress\/wp-json\/wp\/v2\/posts\/119\/revisions\/672"}],"wp:attachment":[{"href":"https:\/\/www.starcoder.com\/wordpress\/wp-json\/wp\/v2\/media?parent=119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.starcoder.com\/wordpress\/wp-json\/wp\/v2\/categories?post=119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.starcoder.com\/wordpress\/wp-json\/wp\/v2\/tags?post=119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}