{"action":"created","issue":{"url":"https://api.github.com/repos/ceylon/ceylon.language/issues/762","labels_url":"https://api.github.com/repos/ceylon/ceylon.language/issues/762/labels{/name}","comments_url":"https://api.github.com/repos/ceylon/ceylon.language/issues/762/comments","events_url":"https://api.github.com/repos/ceylon/ceylon.language/issues/762/events","html_url":"https://github.com/ceylon/ceylon.language/pull/762","id":107398903,"number":762,"title":"Issue #758: let only \"small\" Integers be equal to Floats.","user":{"login":"ePaul","id":645859,"avatar_url":"https://avatars.githubusercontent.com/u/645859?v=3","gravatar_id":"","url":"https://api.github.com/users/ePaul","html_url":"https://github.com/ePaul","followers_url":"https://api.github.com/users/ePaul/followers","following_url":"https://api.github.com/users/ePaul/following{/other_user}","gists_url":"https://api.github.com/users/ePaul/gists{/gist_id}","starred_url":"https://api.github.com/users/ePaul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ePaul/subscriptions","organizations_url":"https://api.github.com/users/ePaul/orgs","repos_url":"https://api.github.com/users/ePaul/repos","events_url":"https://api.github.com/users/ePaul/events{/privacy}","received_events_url":"https://api.github.com/users/ePaul/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ceylon/ceylon.language/labels/BUG","name":"BUG","color":"e10c02"}],"state":"closed","locked":false,"assignee":{"login":"gavinking","id":579974,"avatar_url":"https://avatars.githubusercontent.com/u/579974?v=3","gravatar_id":"","url":"https://api.github.com/users/gavinking","html_url":"https://github.com/gavinking","followers_url":"https://api.github.com/users/gavinking/followers","following_url":"https://api.github.com/users/gavinking/following{/other_user}","gists_url":"https://api.github.com/users/gavinking/gists{/gist_id}","starred_url":"https://api.github.com/users/gavinking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavinking/subscriptions","organizations_url":"https://api.github.com/users/gavinking/orgs","repos_url":"https://api.github.com/users/gavinking/repos","events_url":"https://api.github.com/users/gavinking/events{/privacy}","received_events_url":"https://api.github.com/users/gavinking/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ceylon/ceylon.language/milestones/10","html_url":"https://github.com/ceylon/ceylon.language/milestones/1.2","labels_url":"https://api.github.com/repos/ceylon/ceylon.language/milestones/10/labels","id":807571,"number":10,"title":"1.2","description":"","creator":{"login":"gavinking","id":579974,"avatar_url":"https://avatars.githubusercontent.com/u/579974?v=3","gravatar_id":"","url":"https://api.github.com/users/gavinking","html_url":"https://github.com/gavinking","followers_url":"https://api.github.com/users/gavinking/followers","following_url":"https://api.github.com/users/gavinking/following{/other_user}","gists_url":"https://api.github.com/users/gavinking/gists{/gist_id}","starred_url":"https://api.github.com/users/gavinking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavinking/subscriptions","organizations_url":"https://api.github.com/users/gavinking/orgs","repos_url":"https://api.github.com/users/gavinking/repos","events_url":"https://api.github.com/users/gavinking/events{/privacy}","received_events_url":"https://api.github.com/users/gavinking/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":152,"state":"open","created_at":"2014-09-30T00:35:13Z","updated_at":"2015-09-28T00:31:54Z","due_on":"2014-10-28T23:00:00Z","closed_at":null},"comments":11,"created_at":"2015-09-20T15:46:08Z","updated_at":"2015-09-28T11:24:20Z","closed_at":"2015-09-28T00:22:18Z","pull_request":{"url":"https://api.github.com/repos/ceylon/ceylon.language/pulls/762","html_url":"https://github.com/ceylon/ceylon.language/pull/762","diff_url":"https://github.com/ceylon/ceylon.language/pull/762.diff","patch_url":"https://github.com/ceylon/ceylon.language/pull/762.patch"},"body":"As discussed in #758, now Integers with magnitude 2^53 or larger will not be considered equal to their float counterparts anymore on the JVM. (These are the same numbers for which `Integer.float` throws an OverflowException.)\r\n\r\nAn explanation would be that each floating point number corresponds to an interval, and for those big numbers the intervals contain multiple integers.\r\n\r\nI also updated the documentation ... I'm not sure if the JavaScript implementation needs to be adapted too?"},"comment":{"url":"https://api.github.com/repos/ceylon/ceylon.language/issues/comments/143717305","html_url":"https://github.com/ceylon/ceylon.language/pull/762#issuecomment-143717305","issue_url":"https://api.github.com/repos/ceylon/ceylon.language/issues/762","id":143717305,"user":{"login":"gavinking","id":579974,"avatar_url":"https://avatars.githubusercontent.com/u/579974?v=3","gravatar_id":"","url":"https://api.github.com/users/gavinking","html_url":"https://github.com/gavinking","followers_url":"https://api.github.com/users/gavinking/followers","following_url":"https://api.github.com/users/gavinking/following{/other_user}","gists_url":"https://api.github.com/users/gavinking/gists{/gist_id}","starred_url":"https://api.github.com/users/gavinking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavinking/subscriptions","organizations_url":"https://api.github.com/users/gavinking/orgs","repos_url":"https://api.github.com/users/gavinking/repos","events_url":"https://api.github.com/users/gavinking/events{/privacy}","received_events_url":"https://api.github.com/users/gavinking/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T11:24:20Z","updated_at":"2015-09-28T11:24:20Z","body":"@ePaul interesting.\r\n\r\n@chochos @jvasileff WDYT? It's true that I can write:\r\n\r\n    runtime.maxIntegerValue+10\r\n\r\nIn Ceylon, and get an imprecise `Integer`. Is this something we should worry about or is it just a matter of \"there be dragons\".\r\n\r\nI'm almost inclined to give such integers a `string` like `\"Overflow\"`, to prevent you from trying to use them for anything..."}}