{"action":"created","issue":{"url":"https://api.github.com/repos/halide/Halide/issues/903","labels_url":"https://api.github.com/repos/halide/Halide/issues/903/labels{/name}","comments_url":"https://api.github.com/repos/halide/Halide/issues/903/comments","events_url":"https://api.github.com/repos/halide/Halide/issues/903/events","html_url":"https://github.com/halide/Halide/pull/903","id":100466645,"number":903,"title":"Add a convenient data type for representing half precision floating point numbers","user":{"login":"delcypher","id":511795,"avatar_url":"https://avatars.githubusercontent.com/u/511795?v=3","gravatar_id":"","url":"https://api.github.com/users/delcypher","html_url":"https://github.com/delcypher","followers_url":"https://api.github.com/users/delcypher/followers","following_url":"https://api.github.com/users/delcypher/following{/other_user}","gists_url":"https://api.github.com/users/delcypher/gists{/gist_id}","starred_url":"https://api.github.com/users/delcypher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delcypher/subscriptions","organizations_url":"https://api.github.com/users/delcypher/orgs","repos_url":"https://api.github.com/users/delcypher/repos","events_url":"https://api.github.com/users/delcypher/events{/privacy}","received_events_url":"https://api.github.com/users/delcypher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-08-12T05:01:00Z","updated_at":"2015-08-15T03:48:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/halide/Halide/pulls/903","html_url":"https://github.com/halide/Halide/pull/903","diff_url":"https://github.com/halide/Halide/pull/903.diff","patch_url":"https://github.com/halide/Halide/pull/903.patch"},"body":"This probably needs reworking in some areas but @zvookin encouraged me to submit this PR early so I could get feedback.\r\n\r\nThis type is intended to be one of the foundations for building Half precision support into Halide's expression language.\r\n\r\n@abestephensg Please take a look."},"comment":{"url":"https://api.github.com/repos/halide/Halide/issues/comments/131290035","html_url":"https://github.com/halide/Halide/pull/903#issuecomment-131290035","issue_url":"https://api.github.com/repos/halide/Halide/issues/903","id":131290035,"user":{"login":"delcypher","id":511795,"avatar_url":"https://avatars.githubusercontent.com/u/511795?v=3","gravatar_id":"","url":"https://api.github.com/users/delcypher","html_url":"https://github.com/delcypher","followers_url":"https://api.github.com/users/delcypher/followers","following_url":"https://api.github.com/users/delcypher/following{/other_user}","gists_url":"https://api.github.com/users/delcypher/gists{/gist_id}","starred_url":"https://api.github.com/users/delcypher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delcypher/subscriptions","organizations_url":"https://api.github.com/users/delcypher/orgs","repos_url":"https://api.github.com/users/delcypher/repos","events_url":"https://api.github.com/users/delcypher/events{/privacy}","received_events_url":"https://api.github.com/users/delcypher/received_events","type":"User","site_admin":false},"created_at":"2015-08-15T03:48:23Z","updated_at":"2015-08-15T03:48:23Z","body":"> Do we care about such cases?\r\n\r\nI'm not sure if there are enough of them to worry about.\r\n\r\nI tried looking for a case that requires less digits after the decimal point. \"65455.999\" is an example where the same issue occurs (very close to middle of 65440 and 65472). If the literal is written as a double rather than a float then the given example doesn't cause a problem (\"65455.999999999999\" does). \r\n\r\nThere are other things that need looking at that depend on this PR and I don't want this feature to be blocked any longer so for now I'll remove the user defined literal and add constructors that use a default rounding mode."}}