{"action":"created","issue":{"url":"https://api.github.com/repos/mathiasverraes/money/issues/7","labels_url":"https://api.github.com/repos/mathiasverraes/money/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/mathiasverraes/money/issues/7/comments","events_url":"https://api.github.com/repos/mathiasverraes/money/issues/7/events","html_url":"https://github.com/mathiasverraes/money/issues/7","id":2484602,"number":7,"title":"deal with decimals using BigMoney","user":{"login":"mathiasverraes","id":489516,"avatar_url":"https://avatars.githubusercontent.com/u/489516?v=3","gravatar_id":"","url":"https://api.github.com/users/mathiasverraes","html_url":"https://github.com/mathiasverraes","followers_url":"https://api.github.com/users/mathiasverraes/followers","following_url":"https://api.github.com/users/mathiasverraes/following{/other_user}","gists_url":"https://api.github.com/users/mathiasverraes/gists{/gist_id}","starred_url":"https://api.github.com/users/mathiasverraes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathiasverraes/subscriptions","organizations_url":"https://api.github.com/users/mathiasverraes/orgs","repos_url":"https://api.github.com/users/mathiasverraes/repos","events_url":"https://api.github.com/users/mathiasverraes/events{/privacy}","received_events_url":"https://api.github.com/users/mathiasverraes/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mathiasverraes/money/milestones/2","html_url":"https://github.com/mathiasverraes/money/milestones/3.1.0%20release","labels_url":"https://api.github.com/repos/mathiasverraes/money/milestones/2/labels","id":606484,"number":2,"title":"3.1.0 release","description":"","creator":{"login":"mathiasverraes","id":489516,"avatar_url":"https://avatars.githubusercontent.com/u/489516?v=3","gravatar_id":"","url":"https://api.github.com/users/mathiasverraes","html_url":"https://github.com/mathiasverraes","followers_url":"https://api.github.com/users/mathiasverraes/followers","following_url":"https://api.github.com/users/mathiasverraes/following{/other_user}","gists_url":"https://api.github.com/users/mathiasverraes/gists{/gist_id}","starred_url":"https://api.github.com/users/mathiasverraes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathiasverraes/subscriptions","organizations_url":"https://api.github.com/users/mathiasverraes/orgs","repos_url":"https://api.github.com/users/mathiasverraes/repos","events_url":"https://api.github.com/users/mathiasverraes/events{/privacy}","received_events_url":"https://api.github.com/users/mathiasverraes/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":2,"state":"open","created_at":"2014-03-22T16:48:35Z","updated_at":"2015-02-23T16:45:49Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2011-12-08T07:37:14Z","updated_at":"2015-04-11T10:03:03Z","closed_at":null,"body":"\r\nidea from http://joda-money.sourceforge.net/userguide.html\r\n\r\n> There are two main classes which are both based on BigDecimal:\r\n> Money - an amount in a single currency where the decimal places is determined by the currency\r\n> BigMoney - an amount in a single currency where there is no restriction on the scale\r\n> \r\n> For example, the currencies of US dollars, Euros and British Pounds all use 2 decimal places, thus a Money instance for any of these currencies will have 2 decimal places. By contrast, the Japanese Yen has 0 decimal places, and thus any Money instance with that currency will have 0 decimal places.\r\n> \r\n> Instances of BigMoney may have any scale that can be supported by BigDecimal.\r\n> Conversion between a Money and a BigMoney can be performed using the methods toBigMoney() and toMoney(). The latter optionally takes a rounding mode to handle the case where information must be lost."},"comment":{"url":"https://api.github.com/repos/mathiasverraes/money/issues/comments/91816167","html_url":"https://github.com/mathiasverraes/money/issues/7#issuecomment-91816167","issue_url":"https://api.github.com/repos/mathiasverraes/money/issues/7","id":91816167,"user":{"login":"josecelano","id":58816,"avatar_url":"https://avatars.githubusercontent.com/u/58816?v=3","gravatar_id":"","url":"https://api.github.com/users/josecelano","html_url":"https://github.com/josecelano","followers_url":"https://api.github.com/users/josecelano/followers","following_url":"https://api.github.com/users/josecelano/following{/other_user}","gists_url":"https://api.github.com/users/josecelano/gists{/gist_id}","starred_url":"https://api.github.com/users/josecelano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josecelano/subscriptions","organizations_url":"https://api.github.com/users/josecelano/orgs","repos_url":"https://api.github.com/users/josecelano/repos","events_url":"https://api.github.com/users/josecelano/events{/privacy}","received_events_url":"https://api.github.com/users/josecelano/received_events","type":"User","site_admin":false},"created_at":"2015-04-11T10:03:03Z","updated_at":"2015-04-11T10:03:03Z","body":"Which BigDecimal class are you planning to use?\r\nI am working on an implementation using https://github.com/Litipk/php-bignumbers"}}