{"action":"created","issue":{"url":"https://api.github.com/repos/jashkenas/coffeescript/issues/4935","repository_url":"https://api.github.com/repos/jashkenas/coffeescript","labels_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/4935/labels{/name}","comments_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/4935/comments","events_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/4935/events","html_url":"https://github.com/jashkenas/coffeescript/issues/4935","id":298219499,"number":4935,"title":"integer cast/truncation operator(s)","user":{"login":"coffeescriptbot","id":36576729,"avatar_url":"https://avatars1.githubusercontent.com/u/36576729?v=4","gravatar_id":"","url":"https://api.github.com/users/coffeescriptbot","html_url":"https://github.com/coffeescriptbot","followers_url":"https://api.github.com/users/coffeescriptbot/followers","following_url":"https://api.github.com/users/coffeescriptbot/following{/other_user}","gists_url":"https://api.github.com/users/coffeescriptbot/gists{/gist_id}","starred_url":"https://api.github.com/users/coffeescriptbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coffeescriptbot/subscriptions","organizations_url":"https://api.github.com/users/coffeescriptbot/orgs","repos_url":"https://api.github.com/users/coffeescriptbot/repos","events_url":"https://api.github.com/users/coffeescriptbot/events{/privacy}","received_events_url":"https://api.github.com/users/coffeescriptbot/received_events","type":"User","site_admin":false},"labels":[{"id":841194363,"url":"https://api.github.com/repos/jashkenas/coffeescript/labels/new%20feature","name":"new feature","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-19T10:07:39Z","updated_at":"2018-02-19T10:07:40Z","closed_at":"2018-02-19T10:07:40Z","author_association":"COLLABORATOR","body":"_From @Inve1951 on [2016-09-18 11:44](https://github.com/coffeescript6/discuss/issues/39)_\n\n\nI'm following your progress in this project and want to throw in another topic:\n\nUsing `Math.floor()` on negative numbers gives non-straight-forward results.\n\nFor example right now `-5 // 3` compiles to `Math.floor(-5 / 3)` which results in `-2` when `-1` would be the result of proper \"integer division\".\n\nI came across [this stackoverflow question](http://stackoverflow.com/questions/4228356/integer-division-in-javascript) which displays some nice alterantives which even seem to perform better.\n\nKeep up that good work of yours. :+1: \n"},"comment":{"url":"https://api.github.com/repos/jashkenas/coffeescript/issues/comments/366642738","html_url":"https://github.com/jashkenas/coffeescript/issues/4935#issuecomment-366642738","issue_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/4935","id":366642738,"user":{"login":"coffeescriptbot","id":36576729,"avatar_url":"https://avatars1.githubusercontent.com/u/36576729?v=4","gravatar_id":"","url":"https://api.github.com/users/coffeescriptbot","html_url":"https://github.com/coffeescriptbot","followers_url":"https://api.github.com/users/coffeescriptbot/followers","following_url":"https://api.github.com/users/coffeescriptbot/following{/other_user}","gists_url":"https://api.github.com/users/coffeescriptbot/gists{/gist_id}","starred_url":"https://api.github.com/users/coffeescriptbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coffeescriptbot/subscriptions","organizations_url":"https://api.github.com/users/coffeescriptbot/orgs","repos_url":"https://api.github.com/users/coffeescriptbot/repos","events_url":"https://api.github.com/users/coffeescriptbot/events{/privacy}","received_events_url":"https://api.github.com/users/coffeescriptbot/received_events","type":"User","site_admin":false},"created_at":"2018-02-19T10:07:40Z","updated_at":"2018-02-19T10:07:40Z","author_association":"COLLABORATOR","body":"_From @GeoffreyBooth on [2016-09-18 15:27](https://github.com/coffeescript6/discuss/issues/39#issuecomment-247854166)_\n\n\n@Inve1951 what would be your preference for what `//` should compile to?\n"}}
{"actor":{"display_login":"coffeescriptbot"}}