{"action":"opened","issue":{"url":"https://api.github.com/repos/cryptocoinjs/bigi/issues/19","labels_url":"https://api.github.com/repos/cryptocoinjs/bigi/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/cryptocoinjs/bigi/issues/19/comments","events_url":"https://api.github.com/repos/cryptocoinjs/bigi/issues/19/events","html_url":"https://github.com/cryptocoinjs/bigi/issues/19","id":69007824,"number":19,"title":"How does one create a BigInteger from an integer?","user":{"login":"jcalfee","id":204121,"avatar_url":"https://avatars.githubusercontent.com/u/204121?v=3","gravatar_id":"","url":"https://api.github.com/users/jcalfee","html_url":"https://github.com/jcalfee","followers_url":"https://api.github.com/users/jcalfee/followers","following_url":"https://api.github.com/users/jcalfee/following{/other_user}","gists_url":"https://api.github.com/users/jcalfee/gists{/gist_id}","starred_url":"https://api.github.com/users/jcalfee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcalfee/subscriptions","organizations_url":"https://api.github.com/users/jcalfee/orgs","repos_url":"https://api.github.com/users/jcalfee/repos","events_url":"https://api.github.com/users/jcalfee/events{/privacy}","received_events_url":"https://api.github.com/users/jcalfee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-16T20:54:16Z","updated_at":"2015-04-16T20:54:16Z","closed_at":null,"body":"Until we have a constructor: https://github.com/cryptocoinjs/bigi/issues/18\r\n... or a `fromInt` method, what is the best way to create a BigInteger from an integer? \r\n\r\nHere is my work-around, but this did not work as expected in the second case:\r\n```\r\nBigInteger(\"11\").toString() == \"11\"\r\nBigInteger(\"1.1\").toString() == \"11\"\r\n```\r\nBoth lines return `true`"}}