{"action":"opened","issue":{"url":"https://api.github.com/repos/sass/sass/issues/1883","labels_url":"https://api.github.com/repos/sass/sass/issues/1883/labels{/name}","comments_url":"https://api.github.com/repos/sass/sass/issues/1883/comments","events_url":"https://api.github.com/repos/sass/sass/issues/1883/events","html_url":"https://github.com/sass/sass/issues/1883","id":114943947,"number":1883,"title":"Rounding should respect precision","user":{"login":"mgreter","id":282293,"avatar_url":"https://avatars.githubusercontent.com/u/282293?v=3","gravatar_id":"","url":"https://api.github.com/users/mgreter","html_url":"https://github.com/mgreter","followers_url":"https://api.github.com/users/mgreter/followers","following_url":"https://api.github.com/users/mgreter/following{/other_user}","gists_url":"https://api.github.com/users/mgreter/gists{/gist_id}","starred_url":"https://api.github.com/users/mgreter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgreter/subscriptions","organizations_url":"https://api.github.com/users/mgreter/orgs","repos_url":"https://api.github.com/users/mgreter/repos","events_url":"https://api.github.com/users/mgreter/events{/privacy}","received_events_url":"https://api.github.com/users/mgreter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-04T00:47:09Z","updated_at":"2015-11-04T00:47:09Z","closed_at":null,"body":"This catched my eye when I tried to re-implement the epsilon rounding by ruby sass. I hope I can illustrate what I mean by showing an example:\r\n\r\n`# cat test.scss`\r\n```scss\r\n$a: 0.499999;\r\ndiv {\r\n  a: $a;\r\n  b: round($a);\r\n}\r\n```\r\n`# sass test.scss --precision=5`\r\n```scss\r\ndiv {\r\n  a: 0.5;\r\n  b: 1; }\r\n```\r\n`# sass test.scss --precision=6`\r\n```scss\r\ndiv {\r\n  a: 0.499999;\r\n  b: 1; }\r\n```\r\n\r\nIMO it should not round up in the second case for `b`, since I explicitly requested a precision of 6 digits. Given the final output for `a`, this feels unintuitive if not even wrong, but not sure if this is intended?"}}