{"action":"opened","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/12547","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/12547/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/12547/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/12547/events","html_url":"https://github.com/JuliaLang/julia/issues/12547","id":100185891,"number":12547,"title":"FloatRange","user":{"login":"joshkarges","id":6640165,"avatar_url":"https://avatars.githubusercontent.com/u/6640165?v=3","gravatar_id":"","url":"https://api.github.com/users/joshkarges","html_url":"https://github.com/joshkarges","followers_url":"https://api.github.com/users/joshkarges/followers","following_url":"https://api.github.com/users/joshkarges/following{/other_user}","gists_url":"https://api.github.com/users/joshkarges/gists{/gist_id}","starred_url":"https://api.github.com/users/joshkarges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshkarges/subscriptions","organizations_url":"https://api.github.com/users/joshkarges/orgs","repos_url":"https://api.github.com/users/joshkarges/repos","events_url":"https://api.github.com/users/joshkarges/events{/privacy}","received_events_url":"https://api.github.com/users/joshkarges/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-10T22:52:26Z","updated_at":"2015-08-10T22:52:26Z","closed_at":null,"body":"I came across a weird bug with a FloatRange of mine where the last element was larger than the `stop` value.\r\n```\r\njulia> total_range = 0.0 : 0.152828 : 15.282799999999998\r\n0.0:0.152828:15.2828\r\n\r\njulia> total_range[end] > 15.282799999999998\r\ntrue\r\n```\r\n\r\nI tested using v0.3.7 and v0.3.9, so I'm not sure if this is fixed in a later version or not, but I couldn't find any resolved issues related to this.\r\nI found PR #5636 and issue #2333, which discussed a similar but different issue.  In fact from the discussion it doesn't look like this bug will be easily solved since the `FloatRange` last value is `total_range.start + total_range.step * (total_range.len-1)` which tweaks out the smaller floating point difference in the original `stop` value."}}