{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/8645","repository_url":"https://api.github.com/repos/cakephp/cakephp","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/8645/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/8645/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/8645/events","html_url":"https://github.com/cakephp/cakephp/issues/8645","id":148277314,"number":8645,"title":"Cake\\I18n\\Number::currency ignores \"places\" option","user":{"login":"danielzzz","id":351916,"avatar_url":"https://avatars.githubusercontent.com/u/351916?v=3","gravatar_id":"","url":"https://api.github.com/users/danielzzz","html_url":"https://github.com/danielzzz","followers_url":"https://api.github.com/users/danielzzz/followers","following_url":"https://api.github.com/users/danielzzz/following{/other_user}","gists_url":"https://api.github.com/users/danielzzz/gists{/gist_id}","starred_url":"https://api.github.com/users/danielzzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielzzz/subscriptions","organizations_url":"https://api.github.com/users/danielzzz/orgs","repos_url":"https://api.github.com/users/danielzzz/repos","events_url":"https://api.github.com/users/danielzzz/events{/privacy}","received_events_url":"https://api.github.com/users/danielzzz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/cakephp/labels/Defect","name":"Defect","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/87","html_url":"https://github.com/cakephp/cakephp/milestones/3.2.8","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/87/labels","id":1699165,"number":87,"title":"3.2.8","description":"Bugfixes, optimizations and minor features for 3.2.x","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":33,"closed_issues":12,"state":"open","created_at":"2016-04-11T23:40:37Z","updated_at":"2016-04-14T08:20:49Z","due_on":"2016-05-08T04:00:00Z","closed_at":null},"comments":12,"created_at":"2016-04-14T07:34:52Z","updated_at":"2016-04-14T09:49:33Z","closed_at":null,"body":"This is a (multiple allowed):\r\n* [x] bug\r\n* [ ] enhancement\r\n* [ ] feature-discussion (RFC)\r\n\r\n* CakePHP Version: 3.0.10\r\n* Platform and Target: linux\r\n\r\n### What you did\r\n$this->Number->currency('120000, 'USD', ['places'=>0, 'locale'=>'en_GB']);\r\n\r\n### Expected Behavior\r\nI was hoping to get: $120,000\r\n\r\n### Actual Behavior\r\nbut I am getting actually $120,000.00 \r\nnot sure if it's intended or a bug, but it seems that the locale takes precedence over places.\r\n(for some other locale strings like es_ES the fraction part is gone)\r\nI don't want to use a specific format, as I'd like the amount to be formatted according to locale, but without the fraction part."},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/209855753","html_url":"https://github.com/cakephp/cakephp/issues/8645#issuecomment-209855753","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/8645","id":209855753,"user":{"login":"JustDoItSascha","id":8389022,"avatar_url":"https://avatars.githubusercontent.com/u/8389022?v=3","gravatar_id":"","url":"https://api.github.com/users/JustDoItSascha","html_url":"https://github.com/JustDoItSascha","followers_url":"https://api.github.com/users/JustDoItSascha/followers","following_url":"https://api.github.com/users/JustDoItSascha/following{/other_user}","gists_url":"https://api.github.com/users/JustDoItSascha/gists{/gist_id}","starred_url":"https://api.github.com/users/JustDoItSascha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustDoItSascha/subscriptions","organizations_url":"https://api.github.com/users/JustDoItSascha/orgs","repos_url":"https://api.github.com/users/JustDoItSascha/repos","events_url":"https://api.github.com/users/JustDoItSascha/events{/privacy}","received_events_url":"https://api.github.com/users/JustDoItSascha/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T09:49:33Z","updated_at":"2016-04-14T09:49:33Z","body":"@chinpei215 Ok, but in my opinion it makes no sense to ignore overrides of option attributes. When I set MAX_FRACTION_DIGIT this has nothing to do with a specific locale. It is a option for the appearance of a number, a mathemical thing. Why should intl protect me from changing such an option.\r\n\r\nI know that you are not responsible for this, just want to discuss this. Maybe I miss something..."}}