{"action":"opened","issue":{"url":"https://api.github.com/repos/hoantrun/codewars-solutions/issues/2","labels_url":"https://api.github.com/repos/hoantrun/codewars-solutions/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/hoantrun/codewars-solutions/issues/2/comments","events_url":"https://api.github.com/repos/hoantrun/codewars-solutions/issues/2/events","html_url":"https://github.com/hoantrun/codewars-solutions/issues/2","id":121878981,"number":2,"title":"Going to zero or to infinity? (1!+2!+3!+...n!)/n! ","user":{"login":"hoantrun","id":2700225,"avatar_url":"https://avatars.githubusercontent.com/u/2700225?v=3","gravatar_id":"","url":"https://api.github.com/users/hoantrun","html_url":"https://github.com/hoantrun","followers_url":"https://api.github.com/users/hoantrun/followers","following_url":"https://api.github.com/users/hoantrun/following{/other_user}","gists_url":"https://api.github.com/users/hoantrun/gists{/gist_id}","starred_url":"https://api.github.com/users/hoantrun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoantrun/subscriptions","organizations_url":"https://api.github.com/users/hoantrun/orgs","repos_url":"https://api.github.com/users/hoantrun/repos","events_url":"https://api.github.com/users/hoantrun/events{/privacy}","received_events_url":"https://api.github.com/users/hoantrun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-12T20:43:36Z","updated_at":"2015-12-12T20:43:36Z","closed_at":null,"body":"http://www.codewars.com/kata/55a29405bc7d2efaff00007c/train/javascript\r\nGot big number problem\r\n```javascript\r\nfunction factorial(x)\r\n{\r\n    var v = x, factorials=[] ;\r\n        if (x % 1 === 0) {\r\n            if (factorials[x]) {\r\n                return factorials[x];\r\n            }\r\n            if (x === 0) {\r\n                return factorials[x] = v = 1;\r\n            } \r\n            else\r\n                while (x > 1)\r\n                    v *= --x;\r\n        }  \r\n        return v;\r\n}\r\nfunction sumFactorial(x)\r\n{  \r\n  var r = 1;\r\n  for(var i=2;i<=x;i++)\r\n  {\r\n    r += factorial(i);\r\n  }\r\n  return r;\r\n  \r\n}\r\nfunction going(n) {\r\n    return Math.floor(sumFactorial(n)/factorial(n)*10**6)/10**6;\r\n}\r\n```"}}