{"action":"created","issue":{"url":"https://api.github.com/repos/moneyphp/money/issues/480","repository_url":"https://api.github.com/repos/moneyphp/money","labels_url":"https://api.github.com/repos/moneyphp/money/issues/480/labels{/name}","comments_url":"https://api.github.com/repos/moneyphp/money/issues/480/comments","events_url":"https://api.github.com/repos/moneyphp/money/issues/480/events","html_url":"https://github.com/moneyphp/money/issues/480","id":315507961,"node_id":"MDU6SXNzdWUzMTU1MDc5NjE=","number":480,"title":"Rounding to the \"Nearest\" Whole Unit of Currency ","user":{"login":"broberts-mrmc","id":16501484,"node_id":"MDQ6VXNlcjE2NTAxNDg0","avatar_url":"https://avatars0.githubusercontent.com/u/16501484?v=4","gravatar_id":"","url":"https://api.github.com/users/broberts-mrmc","html_url":"https://github.com/broberts-mrmc","followers_url":"https://api.github.com/users/broberts-mrmc/followers","following_url":"https://api.github.com/users/broberts-mrmc/following{/other_user}","gists_url":"https://api.github.com/users/broberts-mrmc/gists{/gist_id}","starred_url":"https://api.github.com/users/broberts-mrmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/broberts-mrmc/subscriptions","organizations_url":"https://api.github.com/users/broberts-mrmc/orgs","repos_url":"https://api.github.com/users/broberts-mrmc/repos","events_url":"https://api.github.com/users/broberts-mrmc/events{/privacy}","received_events_url":"https://api.github.com/users/broberts-mrmc/received_events","type":"User","site_admin":false},"labels":[{"id":682428252,"node_id":"MDU6TGFiZWw2ODI0MjgyNTI=","url":"https://api.github.com/repos/moneyphp/money/labels/area/money","name":"area/money","color":"0052cc","default":false},{"id":837485589,"node_id":"MDU6TGFiZWw4Mzc0ODU1ODk=","url":"https://api.github.com/repos/moneyphp/money/labels/area/number","name":"area/number","color":"0052cc","default":false},{"id":362748178,"node_id":"MDU6TGFiZWwzNjI3NDgxNzg=","url":"https://api.github.com/repos/moneyphp/money/labels/kind/enhancement","name":"kind/enhancement","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/moneyphp/money/milestones/5","html_url":"https://github.com/moneyphp/money/milestone/5","labels_url":"https://api.github.com/repos/moneyphp/money/milestones/5/labels","id":3097559,"node_id":"MDk6TWlsZXN0b25lMzA5NzU1OQ==","number":5,"title":"3.2.0","description":"","creator":{"login":"sagikazarmark","id":1226384,"node_id":"MDQ6VXNlcjEyMjYzODQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1226384?v=4","gravatar_id":"","url":"https://api.github.com/users/sagikazarmark","html_url":"https://github.com/sagikazarmark","followers_url":"https://api.github.com/users/sagikazarmark/followers","following_url":"https://api.github.com/users/sagikazarmark/following{/other_user}","gists_url":"https://api.github.com/users/sagikazarmark/gists{/gist_id}","starred_url":"https://api.github.com/users/sagikazarmark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagikazarmark/subscriptions","organizations_url":"https://api.github.com/users/sagikazarmark/orgs","repos_url":"https://api.github.com/users/sagikazarmark/repos","events_url":"https://api.github.com/users/sagikazarmark/events{/privacy}","received_events_url":"https://api.github.com/users/sagikazarmark/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":8,"state":"open","created_at":"2018-02-07T19:20:20Z","updated_at":"2018-06-28T17:54:39Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2018-04-18T14:35:55Z","updated_at":"2018-07-06T07:51:49Z","closed_at":null,"author_association":"NONE","body":"While I've looked through the code and documentation, I have not found a built-in method for rounding, using any of the available rounding methods (http://moneyphp.org/en/latest/features/operation.html#rounding-modes), to the \"nearest\" whole unit of currency.  Am I just over looking it? If so, what is the method?\r\n\r\nInputs and [expected] corresponding outputs:\r\n```\r\nROUND(0.01 USD) = 0.00 USD\r\nROUND(0.49 USD) = 0.00 USD\r\nROUND(0.50 USD) = 1.00 USD\r\nROUND(0.51 USD) = 1.00 USD\r\nROUND(1.01 USD) = 1.00 USD\r\nROUND(1.49 USD) = 1.00 USD\r\nROUND(1.50 USD) = 2.00 USD\r\nROUND(1.51 USD) = 2.00 USD\r\n```"},"comment":{"url":"https://api.github.com/repos/moneyphp/money/issues/comments/402956399","html_url":"https://github.com/moneyphp/money/issues/480#issuecomment-402956399","issue_url":"https://api.github.com/repos/moneyphp/money/issues/480","id":402956399,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjk1NjM5OQ==","user":{"login":"frederikbosch","id":1552577,"node_id":"MDQ6VXNlcjE1NTI1Nzc=","avatar_url":"https://avatars2.githubusercontent.com/u/1552577?v=4","gravatar_id":"","url":"https://api.github.com/users/frederikbosch","html_url":"https://github.com/frederikbosch","followers_url":"https://api.github.com/users/frederikbosch/followers","following_url":"https://api.github.com/users/frederikbosch/following{/other_user}","gists_url":"https://api.github.com/users/frederikbosch/gists{/gist_id}","starred_url":"https://api.github.com/users/frederikbosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frederikbosch/subscriptions","organizations_url":"https://api.github.com/users/frederikbosch/orgs","repos_url":"https://api.github.com/users/frederikbosch/repos","events_url":"https://api.github.com/users/frederikbosch/events{/privacy}","received_events_url":"https://api.github.com/users/frederikbosch/received_events","type":"User","site_admin":false},"created_at":"2018-07-06T07:51:49Z","updated_at":"2018-07-06T07:51:49Z","author_association":"MEMBER","body":"I agree, my proposed name is not ideal. `roundToSubunits` sounds good. We do not have any aliases, and my suggestion would be to not ever have them. Just pick a name that suits you best, and we will discuss it when the PR is there."}}
{"actor":{"display_login":"frederikbosch"}}