{"action":"created","issue":{"url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/686","labels_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/686/labels{/name}","comments_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/686/comments","events_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/686/events","html_url":"https://github.com/jakubpawlowicz/clean-css/issues/686","id":110026925,"number":686,"title":"Add optional rounding for more than just `px` values","user":{"login":"maranomynet","id":86827,"avatar_url":"https://avatars.githubusercontent.com/u/86827?v=3","gravatar_id":"","url":"https://api.github.com/users/maranomynet","html_url":"https://github.com/maranomynet","followers_url":"https://api.github.com/users/maranomynet/followers","following_url":"https://api.github.com/users/maranomynet/following{/other_user}","gists_url":"https://api.github.com/users/maranomynet/gists{/gist_id}","starred_url":"https://api.github.com/users/maranomynet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maranomynet/subscriptions","organizations_url":"https://api.github.com/users/maranomynet/orgs","repos_url":"https://api.github.com/users/maranomynet/repos","events_url":"https://api.github.com/users/maranomynet/events{/privacy}","received_events_url":"https://api.github.com/users/maranomynet/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jakubpawlowicz/clean-css/labels/Enhancement","name":"Enhancement","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-06T14:57:34Z","updated_at":"2015-10-19T15:36:34Z","closed_at":null,"body":"When using Stylus to calculate lots of `em`, `rem`and `%` values one ends up with **tons** of ridiculously precise (15 digit decimal fractions) numbers.\r\n\r\nClean-css should also allow me to cap the precision of these values – independently of the `--rounding--precision` option which only applies to `px` values.\r\n"},"comment":{"url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/comments/149251677","html_url":"https://github.com/jakubpawlowicz/clean-css/issues/686#issuecomment-149251677","issue_url":"https://api.github.com/repos/jakubpawlowicz/clean-css/issues/686","id":149251677,"user":{"login":"maranomynet","id":86827,"avatar_url":"https://avatars.githubusercontent.com/u/86827?v=3","gravatar_id":"","url":"https://api.github.com/users/maranomynet","html_url":"https://github.com/maranomynet","followers_url":"https://api.github.com/users/maranomynet/followers","following_url":"https://api.github.com/users/maranomynet/following{/other_user}","gists_url":"https://api.github.com/users/maranomynet/gists{/gist_id}","starred_url":"https://api.github.com/users/maranomynet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maranomynet/subscriptions","organizations_url":"https://api.github.com/users/maranomynet/orgs","repos_url":"https://api.github.com/users/maranomynet/repos","events_url":"https://api.github.com/users/maranomynet/events{/privacy}","received_events_url":"https://api.github.com/users/maranomynet/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T15:36:34Z","updated_at":"2015-10-19T15:36:34Z","body":"If you want to be super cautious don't rounding at all by default.\r\n\r\nPersonally, I'd set 6 as my overall default, as I guess I would be more than sufficient for everything but the most weird/contrived edge-cases...\r\n\r\nI think you shouldn't risk going any more fine-grained than that - except perhaps for the physical units like `px`, `mm`, etc. but hardly anyone uses those anyway.\r\n\r\nPer-unit-precision options probably won't be commonly used - but they'd be very nice to have.\r\n\r\n(still thinking about this...)"}}