{"action":"created","issue":{"url":"https://api.github.com/repos/Shopify/liquid/issues/834","repository_url":"https://api.github.com/repos/Shopify/liquid","labels_url":"https://api.github.com/repos/Shopify/liquid/issues/834/labels{/name}","comments_url":"https://api.github.com/repos/Shopify/liquid/issues/834/comments","events_url":"https://api.github.com/repos/Shopify/liquid/issues/834/events","html_url":"https://github.com/Shopify/liquid/pull/834","id":193574647,"number":834,"title":"Add a filter to compute percentages","user":{"login":"ashmaroli","id":12479464,"avatar_url":"https://avatars.githubusercontent.com/u/12479464?v=3","gravatar_id":"","url":"https://api.github.com/users/ashmaroli","html_url":"https://github.com/ashmaroli","followers_url":"https://api.github.com/users/ashmaroli/followers","following_url":"https://api.github.com/users/ashmaroli/following{/other_user}","gists_url":"https://api.github.com/users/ashmaroli/gists{/gist_id}","starred_url":"https://api.github.com/users/ashmaroli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashmaroli/subscriptions","organizations_url":"https://api.github.com/users/ashmaroli/orgs","repos_url":"https://api.github.com/users/ashmaroli/repos","events_url":"https://api.github.com/users/ashmaroli/events{/privacy}","received_events_url":"https://api.github.com/users/ashmaroli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-05T18:29:47Z","updated_at":"2016-12-05T18:43:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Shopify/liquid/pulls/834","html_url":"https://github.com/Shopify/liquid/pull/834","diff_url":"https://github.com/Shopify/liquid/pull/834.diff","patch_url":"https://github.com/Shopify/liquid/pull/834.patch"},"body":"a filter to compute what percentage `num A` is of `num B`\r\n  - returns a float\r\n  - returns \"Infinity\" when supplied with `0`\r\n  - can be rounded off to required decimal places by the *round* filter\r\n  - returns a float with `.0` even when the modulo of `input` and `operand` is `0` && even if `round: 2` is used"},"comment":{"url":"https://api.github.com/repos/Shopify/liquid/issues/comments/264939102","html_url":"https://github.com/Shopify/liquid/pull/834#issuecomment-264939102","issue_url":"https://api.github.com/repos/Shopify/liquid/issues/834","id":264939102,"user":{"login":"pushrax","id":984857,"avatar_url":"https://avatars.githubusercontent.com/u/984857?v=3","gravatar_id":"","url":"https://api.github.com/users/pushrax","html_url":"https://github.com/pushrax","followers_url":"https://api.github.com/users/pushrax/followers","following_url":"https://api.github.com/users/pushrax/following{/other_user}","gists_url":"https://api.github.com/users/pushrax/gists{/gist_id}","starred_url":"https://api.github.com/users/pushrax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pushrax/subscriptions","organizations_url":"https://api.github.com/users/pushrax/orgs","repos_url":"https://api.github.com/users/pushrax/repos","events_url":"https://api.github.com/users/pushrax/events{/privacy}","received_events_url":"https://api.github.com/users/pushrax/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T18:43:44Z","updated_at":"2016-12-05T18:43:44Z","body":"Is this filter really needed when you can do `{{ x | times: 100.0 | divided_by: y }}`?\r\n\r\n> Why not return 0 when input is 0?\r\n\r\nThat would be unexpected IMO."}}
{"actor":{"display_login":"pushrax"}}