{"action":"created","comment":{"url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/pulls/comments/142265063","pull_request_review_id":66602454,"id":142265063,"diff_hunk":"@@ -241,9 +241,24 @@ var idea = function(name, cost, addition) {\n \t}\n }\n \n+/**\n+ * Return the sum of two numbers,\n+ * fixing floating point errors\n+ */\n+function sumDecimals(n1, n2) {\n+\ta = n1+\"\";\n+\tb = n2+\"\";\n+\tlet aIntegerPart = a.indexOf(\".\") !== -1? a.indexOf(\".\") - 1 : a.length; \n+\tlet aFractalPart = a.indexOf(\".\") !== -1? (a.length - a.indexOf(\".\")) : 0;\n+\tlet bIntegerPart = b.indexOf(\".\") !== -1? b.indexOf(\".\") - 1 : b.length; ","path":"script.js","position":13,"original_position":13,"commit_id":"1f752c162a6508a938e1e3bb473a67415d553819","original_commit_id":"1f752c162a6508a938e1e3bb473a67415d553819","user":{"login":"StevenCopeland","id":26176516,"avatar_url":"https://avatars2.githubusercontent.com/u/26176516?v=4","gravatar_id":"","url":"https://api.github.com/users/StevenCopeland","html_url":"https://github.com/StevenCopeland","followers_url":"https://api.github.com/users/StevenCopeland/followers","following_url":"https://api.github.com/users/StevenCopeland/following{/other_user}","gists_url":"https://api.github.com/users/StevenCopeland/gists{/gist_id}","starred_url":"https://api.github.com/users/StevenCopeland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StevenCopeland/subscriptions","organizations_url":"https://api.github.com/users/StevenCopeland/orgs","repos_url":"https://api.github.com/users/StevenCopeland/repos","events_url":"https://api.github.com/users/StevenCopeland/events{/privacy}","received_events_url":"https://api.github.com/users/StevenCopeland/received_events","type":"User","site_admin":false},"body":"Possible undefined variable: 'b' is not defined.\n\nIf this is intended to be a global variable, you can supress this warning by adding a  `/*global [VARIABLE NAME] */` comment on this file or set it under the `globals` section of your `.eslintrc` configuration.\n\n[Read more about it here.](http://eslint.org/docs/rules/no-undef)","created_at":"2017-10-02T21:50:01Z","updated_at":"2017-10-02T21:50:03Z","html_url":"https://github.com/StevenCopeland/FILEPLAN/pull/32#discussion_r142265063","pull_request_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/pulls/32","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/StevenCopeland/FILEPLAN/pulls/comments/142265063"},"html":{"href":"https://github.com/StevenCopeland/FILEPLAN/pull/32#discussion_r142265063"},"pull_request":{"href":"https://api.github.com/repos/StevenCopeland/FILEPLAN/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/pulls/32","id":144291510,"html_url":"https://github.com/StevenCopeland/FILEPLAN/pull/32","diff_url":"https://github.com/StevenCopeland/FILEPLAN/pull/32.diff","patch_url":"https://github.com/StevenCopeland/FILEPLAN/pull/32.patch","issue_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/issues/32","number":32,"state":"open","locked":false,"title":"Fixing floating point errors","user":{"login":"giovannipessiva","id":1763919,"avatar_url":"https://avatars0.githubusercontent.com/u/1763919?v=4","gravatar_id":"","url":"https://api.github.com/users/giovannipessiva","html_url":"https://github.com/giovannipessiva","followers_url":"https://api.github.com/users/giovannipessiva/followers","following_url":"https://api.github.com/users/giovannipessiva/following{/other_user}","gists_url":"https://api.github.com/users/giovannipessiva/gists{/gist_id}","starred_url":"https://api.github.com/users/giovannipessiva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giovannipessiva/subscriptions","organizations_url":"https://api.github.com/users/giovannipessiva/orgs","repos_url":"https://api.github.com/users/giovannipessiva/repos","events_url":"https://api.github.com/users/giovannipessiva/events{/privacy}","received_events_url":"https://api.github.com/users/giovannipessiva/received_events","type":"User","site_admin":false},"body":"Hello, I implemented a function which should fix #31 \r\nHope it helps! 🍺 ","created_at":"2017-10-02T21:45:44Z","updated_at":"2017-10-02T21:50:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e00480c4903d3e7588d0bf100c995dbfa9ff731c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/pulls/32/commits","review_comments_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/pulls/32/comments","review_comment_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/pulls/comments{/number}","comments_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/issues/32/comments","statuses_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/statuses/1f752c162a6508a938e1e3bb473a67415d553819","head":{"label":"giovannipessiva:fix-floating-point","ref":"fix-floating-point","sha":"1f752c162a6508a938e1e3bb473a67415d553819","user":{"login":"giovannipessiva","id":1763919,"avatar_url":"https://avatars0.githubusercontent.com/u/1763919?v=4","gravatar_id":"","url":"https://api.github.com/users/giovannipessiva","html_url":"https://github.com/giovannipessiva","followers_url":"https://api.github.com/users/giovannipessiva/followers","following_url":"https://api.github.com/users/giovannipessiva/following{/other_user}","gists_url":"https://api.github.com/users/giovannipessiva/gists{/gist_id}","starred_url":"https://api.github.com/users/giovannipessiva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giovannipessiva/subscriptions","organizations_url":"https://api.github.com/users/giovannipessiva/orgs","repos_url":"https://api.github.com/users/giovannipessiva/repos","events_url":"https://api.github.com/users/giovannipessiva/events{/privacy}","received_events_url":"https://api.github.com/users/giovannipessiva/received_events","type":"User","site_admin":false},"repo":{"id":105585981,"name":"FILEPLAN","full_name":"giovannipessiva/FILEPLAN","owner":{"login":"giovannipessiva","id":1763919,"avatar_url":"https://avatars0.githubusercontent.com/u/1763919?v=4","gravatar_id":"","url":"https://api.github.com/users/giovannipessiva","html_url":"https://github.com/giovannipessiva","followers_url":"https://api.github.com/users/giovannipessiva/followers","following_url":"https://api.github.com/users/giovannipessiva/following{/other_user}","gists_url":"https://api.github.com/users/giovannipessiva/gists{/gist_id}","starred_url":"https://api.github.com/users/giovannipessiva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giovannipessiva/subscriptions","organizations_url":"https://api.github.com/users/giovannipessiva/orgs","repos_url":"https://api.github.com/users/giovannipessiva/repos","events_url":"https://api.github.com/users/giovannipessiva/events{/privacy}","received_events_url":"https://api.github.com/users/giovannipessiva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/giovannipessiva/FILEPLAN","description":"This is a game based off the ever popular game SPACEPLAN. This is a clicker game. Please read the wiki for more info.","fork":true,"url":"https://api.github.com/repos/giovannipessiva/FILEPLAN","forks_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/forks","keys_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/keys{/key_id}","collaborators_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/teams","hooks_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/hooks","issue_events_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/issues/events{/number}","events_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/events","assignees_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/assignees{/user}","branches_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/branches{/branch}","tags_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/tags","blobs_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/git/refs{/sha}","trees_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/git/trees{/sha}","statuses_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/statuses/{sha}","languages_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/languages","stargazers_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/stargazers","contributors_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/contributors","subscribers_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/subscribers","subscription_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/subscription","commits_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/commits{/sha}","git_commits_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/git/commits{/sha}","comments_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/comments{/number}","issue_comment_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/issues/comments{/number}","contents_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/contents/{+path}","compare_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/compare/{base}...{head}","merges_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/merges","archive_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/downloads","issues_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/issues{/number}","pulls_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/pulls{/number}","milestones_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/milestones{/number}","notifications_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/labels{/name}","releases_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/releases{/id}","deployments_url":"https://api.github.com/repos/giovannipessiva/FILEPLAN/deployments","created_at":"2017-10-02T21:16:26Z","updated_at":"2017-10-02T21:16:27Z","pushed_at":"2017-10-02T21:48:25Z","git_url":"git://github.com/giovannipessiva/FILEPLAN.git","ssh_url":"git@github.com:giovannipessiva/FILEPLAN.git","clone_url":"https://github.com/giovannipessiva/FILEPLAN.git","svn_url":"https://github.com/giovannipessiva/FILEPLAN","homepage":"https://stevencopeland.github.io/FILEPLAN/","size":2359,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"StevenCopeland:master","ref":"master","sha":"b5c93f77de04daf5e72a27ac3437cc14ce2744d9","user":{"login":"StevenCopeland","id":26176516,"avatar_url":"https://avatars2.githubusercontent.com/u/26176516?v=4","gravatar_id":"","url":"https://api.github.com/users/StevenCopeland","html_url":"https://github.com/StevenCopeland","followers_url":"https://api.github.com/users/StevenCopeland/followers","following_url":"https://api.github.com/users/StevenCopeland/following{/other_user}","gists_url":"https://api.github.com/users/StevenCopeland/gists{/gist_id}","starred_url":"https://api.github.com/users/StevenCopeland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StevenCopeland/subscriptions","organizations_url":"https://api.github.com/users/StevenCopeland/orgs","repos_url":"https://api.github.com/users/StevenCopeland/repos","events_url":"https://api.github.com/users/StevenCopeland/events{/privacy}","received_events_url":"https://api.github.com/users/StevenCopeland/received_events","type":"User","site_admin":false},"repo":{"id":94258647,"name":"FILEPLAN","full_name":"StevenCopeland/FILEPLAN","owner":{"login":"StevenCopeland","id":26176516,"avatar_url":"https://avatars2.githubusercontent.com/u/26176516?v=4","gravatar_id":"","url":"https://api.github.com/users/StevenCopeland","html_url":"https://github.com/StevenCopeland","followers_url":"https://api.github.com/users/StevenCopeland/followers","following_url":"https://api.github.com/users/StevenCopeland/following{/other_user}","gists_url":"https://api.github.com/users/StevenCopeland/gists{/gist_id}","starred_url":"https://api.github.com/users/StevenCopeland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StevenCopeland/subscriptions","organizations_url":"https://api.github.com/users/StevenCopeland/orgs","repos_url":"https://api.github.com/users/StevenCopeland/repos","events_url":"https://api.github.com/users/StevenCopeland/events{/privacy}","received_events_url":"https://api.github.com/users/StevenCopeland/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/StevenCopeland/FILEPLAN","description":"This is a game based off the ever popular game SPACEPLAN. This is a clicker game. Please read the wiki for more info.","fork":false,"url":"https://api.github.com/repos/StevenCopeland/FILEPLAN","forks_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/forks","keys_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/teams","hooks_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/hooks","issue_events_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/issues/events{/number}","events_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/events","assignees_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/assignees{/user}","branches_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/branches{/branch}","tags_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/tags","blobs_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/git/refs{/sha}","trees_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/statuses/{sha}","languages_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/languages","stargazers_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/stargazers","contributors_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/contributors","subscribers_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/subscribers","subscription_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/subscription","commits_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/commits{/sha}","git_commits_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/git/commits{/sha}","comments_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/comments{/number}","issue_comment_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/issues/comments{/number}","contents_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/contents/{+path}","compare_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/merges","archive_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/downloads","issues_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/issues{/number}","pulls_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/pulls{/number}","milestones_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/milestones{/number}","notifications_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/labels{/name}","releases_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/releases{/id}","deployments_url":"https://api.github.com/repos/StevenCopeland/FILEPLAN/deployments","created_at":"2017-06-13T21:15:11Z","updated_at":"2017-09-13T21:13:01Z","pushed_at":"2017-10-02T21:48:26Z","git_url":"git://github.com/StevenCopeland/FILEPLAN.git","ssh_url":"git@github.com:StevenCopeland/FILEPLAN.git","clone_url":"https://github.com/StevenCopeland/FILEPLAN.git","svn_url":"https://github.com/StevenCopeland/FILEPLAN","homepage":"https://stevencopeland.github.io/FILEPLAN/","size":2359,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/StevenCopeland/FILEPLAN/pulls/32"},"html":{"href":"https://github.com/StevenCopeland/FILEPLAN/pull/32"},"issue":{"href":"https://api.github.com/repos/StevenCopeland/FILEPLAN/issues/32"},"comments":{"href":"https://api.github.com/repos/StevenCopeland/FILEPLAN/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/StevenCopeland/FILEPLAN/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/StevenCopeland/FILEPLAN/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/StevenCopeland/FILEPLAN/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/StevenCopeland/FILEPLAN/statuses/1f752c162a6508a938e1e3bb473a67415d553819"}},"author_association":"NONE"}}
{"actor":{"display_login":"StevenCopeland"}}