{"action":"created","comment":{"url":"https://api.github.com/repos/asciidwango/js-primer/pulls/comments/245476157","pull_request_review_id":189595306,"id":245476157,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NTQ3NjE1Nw==","diff_hunk":"@@ -72,8 +72,51 @@ console.log(Math.max(...numbers)); // => 5\n console.log(Math.min(...numbers)); // => 1\n ```\n \n+### 数値を整数にする {#convert-to-integer}\n+\n+`Math`オブジェクトには数値を整数に丸めるためのメソッドがいくつかあります。\n+代表的なものは、小数点以下を切り捨てる`Math.floor`メソッド、小数点以下を切り上げる`Math.ceil`メソッド、そして四捨五入をおこなう`Math.round`メソッドです。\n+\n+[Math.floor][]メソッドは、引数として渡した数以下で最大の整数を返します。このような関数は**底関数**と呼ばれます。","path":"source/basic/math/README.md","position":9,"original_position":9,"commit_id":"404113fa813d8f5723b840b38c652858f23212f1","original_commit_id":"404113fa813d8f5723b840b38c652858f23212f1","user":{"login":"azu","id":19714,"node_id":"MDQ6VXNlcjE5NzE0","avatar_url":"https://avatars1.githubusercontent.com/u/19714?v=4","gravatar_id":"","url":"https://api.github.com/users/azu","html_url":"https://github.com/azu","followers_url":"https://api.github.com/users/azu/followers","following_url":"https://api.github.com/users/azu/following{/other_user}","gists_url":"https://api.github.com/users/azu/gists{/gist_id}","starred_url":"https://api.github.com/users/azu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azu/subscriptions","organizations_url":"https://api.github.com/users/azu/orgs","repos_url":"https://api.github.com/users/azu/repos","events_url":"https://api.github.com/users/azu/events{/privacy}","received_events_url":"https://api.github.com/users/azu/received_events","type":"User","site_admin":false},"body":"https://ja.wikipedia.org/wiki/%E5%BA%8A%E9%96%A2%E6%95%B0%E3%81%A8%E5%A4%A9%E4%BA%95%E9%96%A2%E6%95%B0\r\nそんな呼び方あるんだ。初めて知った。","created_at":"2019-01-05T12:15:34Z","updated_at":"2019-01-05T12:18:46Z","html_url":"https://github.com/asciidwango/js-primer/pull/626#discussion_r245476157","pull_request_url":"https://api.github.com/repos/asciidwango/js-primer/pulls/626","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/asciidwango/js-primer/pulls/comments/245476157"},"html":{"href":"https://github.com/asciidwango/js-primer/pull/626#discussion_r245476157"},"pull_request":{"href":"https://api.github.com/repos/asciidwango/js-primer/pulls/626"}}},"pull_request":{"url":"https://api.github.com/repos/asciidwango/js-primer/pulls/626","id":242265871,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQyMjY1ODcx","html_url":"https://github.com/asciidwango/js-primer/pull/626","diff_url":"https://github.com/asciidwango/js-primer/pull/626.diff","patch_url":"https://github.com/asciidwango/js-primer/pull/626.patch","issue_url":"https://api.github.com/repos/asciidwango/js-primer/issues/626","number":626,"state":"open","locked":false,"title":"feat(math): Mathに整数丸めを追加","user":{"login":"lacolaco","id":1529180,"node_id":"MDQ6VXNlcjE1MjkxODA=","avatar_url":"https://avatars3.githubusercontent.com/u/1529180?v=4","gravatar_id":"","url":"https://api.github.com/users/lacolaco","html_url":"https://github.com/lacolaco","followers_url":"https://api.github.com/users/lacolaco/followers","following_url":"https://api.github.com/users/lacolaco/following{/other_user}","gists_url":"https://api.github.com/users/lacolaco/gists{/gist_id}","starred_url":"https://api.github.com/users/lacolaco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lacolaco/subscriptions","organizations_url":"https://api.github.com/users/lacolaco/orgs","repos_url":"https://api.github.com/users/lacolaco/repos","events_url":"https://api.github.com/users/lacolaco/events{/privacy}","received_events_url":"https://api.github.com/users/lacolaco/received_events","type":"User","site_admin":false},"body":"https://github.com/asciidwango/js-primer/issues/599","created_at":"2019-01-04T13:42:55Z","updated_at":"2019-01-05T12:18:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b16b403366b33af61dc9f061ca1c44f661e6d9c4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":420464932,"node_id":"MDU6TGFiZWw0MjA0NjQ5MzI=","url":"https://api.github.com/repos/asciidwango/js-primer/labels/Status:%20Review%20Needed","name":"Status: Review Needed","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/asciidwango/js-primer/pulls/626/commits","review_comments_url":"https://api.github.com/repos/asciidwango/js-primer/pulls/626/comments","review_comment_url":"https://api.github.com/repos/asciidwango/js-primer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/asciidwango/js-primer/issues/626/comments","statuses_url":"https://api.github.com/repos/asciidwango/js-primer/statuses/404113fa813d8f5723b840b38c652858f23212f1","head":{"label":"asciidwango:enhance-math","ref":"enhance-math","sha":"404113fa813d8f5723b840b38c652858f23212f1","user":{"login":"asciidwango","id":10266070,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMjY2MDcw","avatar_url":"https://avatars3.githubusercontent.com/u/10266070?v=4","gravatar_id":"","url":"https://api.github.com/users/asciidwango","html_url":"https://github.com/asciidwango","followers_url":"https://api.github.com/users/asciidwango/followers","following_url":"https://api.github.com/users/asciidwango/following{/other_user}","gists_url":"https://api.github.com/users/asciidwango/gists{/gist_id}","starred_url":"https://api.github.com/users/asciidwango/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asciidwango/subscriptions","organizations_url":"https://api.github.com/users/asciidwango/orgs","repos_url":"https://api.github.com/users/asciidwango/repos","events_url":"https://api.github.com/users/asciidwango/events{/privacy}","received_events_url":"https://api.github.com/users/asciidwango/received_events","type":"Organization","site_admin":false},"repo":{"id":50896111,"node_id":"MDEwOlJlcG9zaXRvcnk1MDg5NjExMQ==","name":"js-primer","full_name":"asciidwango/js-primer","private":false,"owner":{"login":"asciidwango","id":10266070,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMjY2MDcw","avatar_url":"https://avatars3.githubusercontent.com/u/10266070?v=4","gravatar_id":"","url":"https://api.github.com/users/asciidwango","html_url":"https://github.com/asciidwango","followers_url":"https://api.github.com/users/asciidwango/followers","following_url":"https://api.github.com/users/asciidwango/following{/other_user}","gists_url":"https://api.github.com/users/asciidwango/gists{/gist_id}","starred_url":"https://api.github.com/users/asciidwango/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asciidwango/subscriptions","organizations_url":"https://api.github.com/users/asciidwango/orgs","repos_url":"https://api.github.com/users/asciidwango/repos","events_url":"https://api.github.com/users/asciidwango/events{/privacy}","received_events_url":"https://api.github.com/users/asciidwango/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/asciidwango/js-primer","description":":book:  JavaScriptの入門書","fork":false,"url":"https://api.github.com/repos/asciidwango/js-primer","forks_url":"https://api.github.com/repos/asciidwango/js-primer/forks","keys_url":"https://api.github.com/repos/asciidwango/js-primer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/asciidwango/js-primer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/asciidwango/js-primer/teams","hooks_url":"https://api.github.com/repos/asciidwango/js-primer/hooks","issue_events_url":"https://api.github.com/repos/asciidwango/js-primer/issues/events{/number}","events_url":"https://api.github.com/repos/asciidwango/js-primer/events","assignees_url":"https://api.github.com/repos/asciidwango/js-primer/assignees{/user}","branches_url":"https://api.github.com/repos/asciidwango/js-primer/branches{/branch}","tags_url":"https://api.github.com/repos/asciidwango/js-primer/tags","blobs_url":"https://api.github.com/repos/asciidwango/js-primer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/asciidwango/js-primer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/asciidwango/js-primer/git/refs{/sha}","trees_url":"https://api.github.com/repos/asciidwango/js-primer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/asciidwango/js-primer/statuses/{sha}","languages_url":"https://api.github.com/repos/asciidwango/js-primer/languages","stargazers_url":"https://api.github.com/repos/asciidwango/js-primer/stargazers","contributors_url":"https://api.github.com/repos/asciidwango/js-primer/contributors","subscribers_url":"https://api.github.com/repos/asciidwango/js-primer/subscribers","subscription_url":"https://api.github.com/repos/asciidwango/js-primer/subscription","commits_url":"https://api.github.com/repos/asciidwango/js-primer/commits{/sha}","git_commits_url":"https://api.github.com/repos/asciidwango/js-primer/git/commits{/sha}","comments_url":"https://api.github.com/repos/asciidwango/js-primer/comments{/number}","issue_comment_url":"https://api.github.com/repos/asciidwango/js-primer/issues/comments{/number}","contents_url":"https://api.github.com/repos/asciidwango/js-primer/contents/{+path}","compare_url":"https://api.github.com/repos/asciidwango/js-primer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/asciidwango/js-primer/merges","archive_url":"https://api.github.com/repos/asciidwango/js-primer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/asciidwango/js-primer/downloads","issues_url":"https://api.github.com/repos/asciidwango/js-primer/issues{/number}","pulls_url":"https://api.github.com/repos/asciidwango/js-primer/pulls{/number}","milestones_url":"https://api.github.com/repos/asciidwango/js-primer/milestones{/number}","notifications_url":"https://api.github.com/repos/asciidwango/js-primer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/asciidwango/js-primer/labels{/name}","releases_url":"https://api.github.com/repos/asciidwango/js-primer/releases{/id}","deployments_url":"https://api.github.com/repos/asciidwango/js-primer/deployments","created_at":"2016-02-02T05:16:25Z","updated_at":"2019-01-05T07:46:56Z","pushed_at":"2019-01-04T14:45:24Z","git_url":"git://github.com/asciidwango/js-primer.git","ssh_url":"git@github.com:asciidwango/js-primer.git","clone_url":"https://github.com/asciidwango/js-primer.git","svn_url":"https://github.com/asciidwango/js-primer","homepage":"https://jsprimer.net","size":29989,"stargazers_count":1018,"watchers_count":1018,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":59,"mirror_url":null,"archived":false,"open_issues_count":50,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":59,"open_issues":50,"watchers":1018,"default_branch":"master"}},"base":{"label":"asciidwango:master","ref":"master","sha":"56daefe283677b8f449e7fb4263f74de45e5f981","user":{"login":"asciidwango","id":10266070,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMjY2MDcw","avatar_url":"https://avatars3.githubusercontent.com/u/10266070?v=4","gravatar_id":"","url":"https://api.github.com/users/asciidwango","html_url":"https://github.com/asciidwango","followers_url":"https://api.github.com/users/asciidwango/followers","following_url":"https://api.github.com/users/asciidwango/following{/other_user}","gists_url":"https://api.github.com/users/asciidwango/gists{/gist_id}","starred_url":"https://api.github.com/users/asciidwango/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asciidwango/subscriptions","organizations_url":"https://api.github.com/users/asciidwango/orgs","repos_url":"https://api.github.com/users/asciidwango/repos","events_url":"https://api.github.com/users/asciidwango/events{/privacy}","received_events_url":"https://api.github.com/users/asciidwango/received_events","type":"Organization","site_admin":false},"repo":{"id":50896111,"node_id":"MDEwOlJlcG9zaXRvcnk1MDg5NjExMQ==","name":"js-primer","full_name":"asciidwango/js-primer","private":false,"owner":{"login":"asciidwango","id":10266070,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMjY2MDcw","avatar_url":"https://avatars3.githubusercontent.com/u/10266070?v=4","gravatar_id":"","url":"https://api.github.com/users/asciidwango","html_url":"https://github.com/asciidwango","followers_url":"https://api.github.com/users/asciidwango/followers","following_url":"https://api.github.com/users/asciidwango/following{/other_user}","gists_url":"https://api.github.com/users/asciidwango/gists{/gist_id}","starred_url":"https://api.github.com/users/asciidwango/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asciidwango/subscriptions","organizations_url":"https://api.github.com/users/asciidwango/orgs","repos_url":"https://api.github.com/users/asciidwango/repos","events_url":"https://api.github.com/users/asciidwango/events{/privacy}","received_events_url":"https://api.github.com/users/asciidwango/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/asciidwango/js-primer","description":":book:  JavaScriptの入門書","fork":false,"url":"https://api.github.com/repos/asciidwango/js-primer","forks_url":"https://api.github.com/repos/asciidwango/js-primer/forks","keys_url":"https://api.github.com/repos/asciidwango/js-primer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/asciidwango/js-primer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/asciidwango/js-primer/teams","hooks_url":"https://api.github.com/repos/asciidwango/js-primer/hooks","issue_events_url":"https://api.github.com/repos/asciidwango/js-primer/issues/events{/number}","events_url":"https://api.github.com/repos/asciidwango/js-primer/events","assignees_url":"https://api.github.com/repos/asciidwango/js-primer/assignees{/user}","branches_url":"https://api.github.com/repos/asciidwango/js-primer/branches{/branch}","tags_url":"https://api.github.com/repos/asciidwango/js-primer/tags","blobs_url":"https://api.github.com/repos/asciidwango/js-primer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/asciidwango/js-primer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/asciidwango/js-primer/git/refs{/sha}","trees_url":"https://api.github.com/repos/asciidwango/js-primer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/asciidwango/js-primer/statuses/{sha}","languages_url":"https://api.github.com/repos/asciidwango/js-primer/languages","stargazers_url":"https://api.github.com/repos/asciidwango/js-primer/stargazers","contributors_url":"https://api.github.com/repos/asciidwango/js-primer/contributors","subscribers_url":"https://api.github.com/repos/asciidwango/js-primer/subscribers","subscription_url":"https://api.github.com/repos/asciidwango/js-primer/subscription","commits_url":"https://api.github.com/repos/asciidwango/js-primer/commits{/sha}","git_commits_url":"https://api.github.com/repos/asciidwango/js-primer/git/commits{/sha}","comments_url":"https://api.github.com/repos/asciidwango/js-primer/comments{/number}","issue_comment_url":"https://api.github.com/repos/asciidwango/js-primer/issues/comments{/number}","contents_url":"https://api.github.com/repos/asciidwango/js-primer/contents/{+path}","compare_url":"https://api.github.com/repos/asciidwango/js-primer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/asciidwango/js-primer/merges","archive_url":"https://api.github.com/repos/asciidwango/js-primer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/asciidwango/js-primer/downloads","issues_url":"https://api.github.com/repos/asciidwango/js-primer/issues{/number}","pulls_url":"https://api.github.com/repos/asciidwango/js-primer/pulls{/number}","milestones_url":"https://api.github.com/repos/asciidwango/js-primer/milestones{/number}","notifications_url":"https://api.github.com/repos/asciidwango/js-primer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/asciidwango/js-primer/labels{/name}","releases_url":"https://api.github.com/repos/asciidwango/js-primer/releases{/id}","deployments_url":"https://api.github.com/repos/asciidwango/js-primer/deployments","created_at":"2016-02-02T05:16:25Z","updated_at":"2019-01-05T07:46:56Z","pushed_at":"2019-01-04T14:45:24Z","git_url":"git://github.com/asciidwango/js-primer.git","ssh_url":"git@github.com:asciidwango/js-primer.git","clone_url":"https://github.com/asciidwango/js-primer.git","svn_url":"https://github.com/asciidwango/js-primer","homepage":"https://jsprimer.net","size":29989,"stargazers_count":1018,"watchers_count":1018,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":59,"mirror_url":null,"archived":false,"open_issues_count":50,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":59,"open_issues":50,"watchers":1018,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/asciidwango/js-primer/pulls/626"},"html":{"href":"https://github.com/asciidwango/js-primer/pull/626"},"issue":{"href":"https://api.github.com/repos/asciidwango/js-primer/issues/626"},"comments":{"href":"https://api.github.com/repos/asciidwango/js-primer/issues/626/comments"},"review_comments":{"href":"https://api.github.com/repos/asciidwango/js-primer/pulls/626/comments"},"review_comment":{"href":"https://api.github.com/repos/asciidwango/js-primer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/asciidwango/js-primer/pulls/626/commits"},"statuses":{"href":"https://api.github.com/repos/asciidwango/js-primer/statuses/404113fa813d8f5723b840b38c652858f23212f1"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"azu"}}