{"action":"created","issue":{"url":"https://api.github.com/repos/peterolson/BigInteger.js/issues/153","repository_url":"https://api.github.com/repos/peterolson/BigInteger.js","labels_url":"https://api.github.com/repos/peterolson/BigInteger.js/issues/153/labels{/name}","comments_url":"https://api.github.com/repos/peterolson/BigInteger.js/issues/153/comments","events_url":"https://api.github.com/repos/peterolson/BigInteger.js/issues/153/events","html_url":"https://github.com/peterolson/BigInteger.js/issues/153","id":351893667,"node_id":"MDU6SXNzdWUzNTE4OTM2Njc=","number":153,"title":"Wrong output on and()","user":{"login":"idofilus","id":24627792,"node_id":"MDQ6VXNlcjI0NjI3Nzky","avatar_url":"https://avatars3.githubusercontent.com/u/24627792?v=4","gravatar_id":"","url":"https://api.github.com/users/idofilus","html_url":"https://github.com/idofilus","followers_url":"https://api.github.com/users/idofilus/followers","following_url":"https://api.github.com/users/idofilus/following{/other_user}","gists_url":"https://api.github.com/users/idofilus/gists{/gist_id}","starred_url":"https://api.github.com/users/idofilus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idofilus/subscriptions","organizations_url":"https://api.github.com/users/idofilus/orgs","repos_url":"https://api.github.com/users/idofilus/repos","events_url":"https://api.github.com/users/idofilus/events{/privacy}","received_events_url":"https://api.github.com/users/idofilus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-19T11:00:33Z","updated_at":"2018-08-19T17:47:10Z","closed_at":null,"author_association":"NONE","body":"On chrome you can find the correct way:\r\n`6827581190108759180n & 0xfn` _===_ `12n`\r\n\r\nOn bigInt:\r\n`bigInt(6827581190108759180).and(0xf).value` _===_ `8`\r\n\r\nSeems like with few examples I tried, it always off by 4, but not 100% sure about it."},"comment":{"url":"https://api.github.com/repos/peterolson/BigInteger.js/issues/comments/414143668","html_url":"https://github.com/peterolson/BigInteger.js/issues/153#issuecomment-414143668","issue_url":"https://api.github.com/repos/peterolson/BigInteger.js/issues/153","id":414143668,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDE0MzY2OA==","user":{"login":"idofilus","id":24627792,"node_id":"MDQ6VXNlcjI0NjI3Nzky","avatar_url":"https://avatars3.githubusercontent.com/u/24627792?v=4","gravatar_id":"","url":"https://api.github.com/users/idofilus","html_url":"https://github.com/idofilus","followers_url":"https://api.github.com/users/idofilus/followers","following_url":"https://api.github.com/users/idofilus/following{/other_user}","gists_url":"https://api.github.com/users/idofilus/gists{/gist_id}","starred_url":"https://api.github.com/users/idofilus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idofilus/subscriptions","organizations_url":"https://api.github.com/users/idofilus/orgs","repos_url":"https://api.github.com/users/idofilus/repos","events_url":"https://api.github.com/users/idofilus/events{/privacy}","received_events_url":"https://api.github.com/users/idofilus/received_events","type":"User","site_admin":false},"created_at":"2018-08-19T17:47:10Z","updated_at":"2018-08-19T17:47:10Z","author_association":"NONE","body":"@Yaffle Not sure I understand what you mean by \r\n\r\n> `6827581190108759180` equals `6827581190108759040`\r\n\r\n_6827581190108759180_ = 1011110110000000111000011101011000101111001001001000100 **10001100**\r\n_6827581190108759040_ = 1011110110000000111000011101011000101111001001001000100 **00000000**\r\n\r\nNow if we will use the lowest bits that are different:\r\n```\r\n   10001100\r\n&      1111\r\n ----------\r\n       1100\r\n```"}}
{"actor":{"display_login":"idofilus"}}