{"id":1220,"date":"2004-12-04T23:56:00","date_gmt":"2004-12-04T23:56:00","guid":{"rendered":"http:\/\/www.celesteh.com\/blog\/2004\/12\/04\/most-annoying-bug-ever\/"},"modified":"2015-06-19T00:25:49","modified_gmt":"2015-06-18T23:25:49","slug":"most-annoying-bug-ever","status":"publish","type":"post","link":"https:\/\/www.celesteh.com\/blog\/2004\/12\/04\/most-annoying-bug-ever\/","title":{"rendered":"Most annoying bug ever"},"content":{"rendered":"<p>SuperCollider does not reliably convert floats to integers even when you ask nicely.  sure, it rounds for you.  but does the type change?  nooooo.  can you use it as an array index?  noooo.  does this cause my code to fail in impossible to fix ways?  yes.  does it cause unreasonable levels of frustration?  you bet.  Has this been fixed in between the version where i noticed the bug (from september) and yesterday&#8217;s version? nooooo.<\/p>\n<p>grrrrrrrrr<br \/>\n<b>update<\/b> work around:  when you do float.floor or float.ceil, put an asInt at the end: float.floor.asInt float.ceil.asInt .<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SuperCollider does not reliably convert floats to integers even when you ask nicely. sure, it rounds for you. but does the type change? nooooo. can you use it as an array index? noooo. does this cause my code to fail in impossible to fix ways? yes. does it cause unreasonable levels of frustration? you bet. &hellip; <a href=\"https:\/\/www.celesteh.com\/blog\/2004\/12\/04\/most-annoying-bug-ever\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Most annoying bug ever<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-1220","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/posts\/1220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/comments?post=1220"}],"version-history":[{"count":1,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/posts\/1220\/revisions"}],"predecessor-version":[{"id":3470,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/posts\/1220\/revisions\/3470"}],"wp:attachment":[{"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/media?parent=1220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/categories?post=1220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/tags?post=1220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}