{"action":"created","issue":{"url":"https://api.github.com/repos/josephwright/siunitx/issues/273","repository_url":"https://api.github.com/repos/josephwright/siunitx","labels_url":"https://api.github.com/repos/josephwright/siunitx/issues/273/labels{/name}","comments_url":"https://api.github.com/repos/josephwright/siunitx/issues/273/comments","events_url":"https://api.github.com/repos/josephwright/siunitx/issues/273/events","html_url":"https://github.com/josephwright/siunitx/issues/273","id":94785587,"number":273,"title":"Asymmetrical uncertainties and round-mode w/ omit-uncertainty","user":{"login":"parnmatt","id":318829,"avatar_url":"https://avatars0.githubusercontent.com/u/318829?v=3","gravatar_id":"","url":"https://api.github.com/users/parnmatt","html_url":"https://github.com/parnmatt","followers_url":"https://api.github.com/users/parnmatt/followers","following_url":"https://api.github.com/users/parnmatt/following{/other_user}","gists_url":"https://api.github.com/users/parnmatt/gists{/gist_id}","starred_url":"https://api.github.com/users/parnmatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parnmatt/subscriptions","organizations_url":"https://api.github.com/users/parnmatt/orgs","repos_url":"https://api.github.com/users/parnmatt/repos","events_url":"https://api.github.com/users/parnmatt/events{/privacy}","received_events_url":"https://api.github.com/users/parnmatt/received_events","type":"User","site_admin":false},"labels":[{"id":37615378,"url":"https://api.github.com/repos/josephwright/siunitx/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"josephwright","id":654518,"avatar_url":"https://avatars1.githubusercontent.com/u/654518?v=3","gravatar_id":"","url":"https://api.github.com/users/josephwright","html_url":"https://github.com/josephwright","followers_url":"https://api.github.com/users/josephwright/followers","following_url":"https://api.github.com/users/josephwright/following{/other_user}","gists_url":"https://api.github.com/users/josephwright/gists{/gist_id}","starred_url":"https://api.github.com/users/josephwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josephwright/subscriptions","organizations_url":"https://api.github.com/users/josephwright/orgs","repos_url":"https://api.github.com/users/josephwright/repos","events_url":"https://api.github.com/users/josephwright/events{/privacy}","received_events_url":"https://api.github.com/users/josephwright/received_events","type":"User","site_admin":false},"assignees":[{"login":"josephwright","id":654518,"avatar_url":"https://avatars1.githubusercontent.com/u/654518?v=3","gravatar_id":"","url":"https://api.github.com/users/josephwright","html_url":"https://github.com/josephwright","followers_url":"https://api.github.com/users/josephwright/followers","following_url":"https://api.github.com/users/josephwright/following{/other_user}","gists_url":"https://api.github.com/users/josephwright/gists{/gist_id}","starred_url":"https://api.github.com/users/josephwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josephwright/subscriptions","organizations_url":"https://api.github.com/users/josephwright/orgs","repos_url":"https://api.github.com/users/josephwright/repos","events_url":"https://api.github.com/users/josephwright/events{/privacy}","received_events_url":"https://api.github.com/users/josephwright/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/josephwright/siunitx/milestones/2","html_url":"https://github.com/josephwright/siunitx/milestone/2","labels_url":"https://api.github.com/repos/josephwright/siunitx/milestones/2/labels","id":777431,"number":2,"title":"v3.0","description":"","creator":{"login":"josephwright","id":654518,"avatar_url":"https://avatars1.githubusercontent.com/u/654518?v=3","gravatar_id":"","url":"https://api.github.com/users/josephwright","html_url":"https://github.com/josephwright","followers_url":"https://api.github.com/users/josephwright/followers","following_url":"https://api.github.com/users/josephwright/following{/other_user}","gists_url":"https://api.github.com/users/josephwright/gists{/gist_id}","starred_url":"https://api.github.com/users/josephwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josephwright/subscriptions","organizations_url":"https://api.github.com/users/josephwright/orgs","repos_url":"https://api.github.com/users/josephwright/repos","events_url":"https://api.github.com/users/josephwright/events{/privacy}","received_events_url":"https://api.github.com/users/josephwright/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":2,"state":"open","created_at":"2014-09-03T20:10:28Z","updated_at":"2017-04-11T13:13:53Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-07-13T18:48:44Z","updated_at":"2017-04-12T14:03:23Z","closed_at":null,"body":"I have some thoughts, and wondered on your opinion.\n\n---\n# Rounding\n\n`round-mode` will not round if there is an uncertainty component. I understand the reasoning behind that. However in context of `omit-uncertainty`, there is no uncertainty component, therefore this should round.\n\n``` latex\n    \\num[round-mode=figures,round-precision=3]{1.2345(6)}\n        % ==> 1.2345(6)\n    \\num[omit-uncertainty,round-mode=figures,round-precison=3]{1.2345(6)}\n        % ==> 1.23\n```\n\nThis is useful for me, as I am defining macros of full precision numbers with uncertainties and units etc. within my preamble, with an optional argument that sends the optional arguments to \\SI\nThat way I have access to all the information if I want it, but reduce it when needed. Just as a random example, use-case, something like:\n\n``` latex\n    \\newcommand*\\amuValue[1][]{\\SI[#1]{1.660538921(73)e−27)}{\\kg}\\xspace}\n    % ...\n    $\\SI{1}{\\amu} = \\amuValue[omit-uncertainty,round-mode=figures,round-precison=3]$\n```\n\nbut using `\\amuValue` in multiple places within the document, including a table of constants with full precision.\n\n---\n# Asymmetrical uncertainties\n\nA fair bit of the time our uncertainties are not symmetric, as they are not truly standard deviations.\nI propose that these be incorporated, something like:\n\n``` latex\n    \\num{number(min,max)}\n    \\num{number -min +max}\n    \\num{number +min -max}\n```\n\nWhich would have something like what I've quickly written:\n\n``` latex\n    % useage:  \\asymmnumerr{number}{min}{max}\n    \\newcommand*\\asymmnumerr[3]{%\n        \\ensuremath{\\num{#1}%\n            _{\\num[retain-explicit-plus,explicit-sign=-]{#2}}%\n            ^{\\num[retain-explicit-plus,explicit-sign=+]{#3}}%\n    }}\n```\n"},"comment":{"url":"https://api.github.com/repos/josephwright/siunitx/issues/comments/293586949","html_url":"https://github.com/josephwright/siunitx/issues/273#issuecomment-293586949","issue_url":"https://api.github.com/repos/josephwright/siunitx/issues/273","id":293586949,"user":{"login":"parnmatt","id":318829,"avatar_url":"https://avatars0.githubusercontent.com/u/318829?v=3","gravatar_id":"","url":"https://api.github.com/users/parnmatt","html_url":"https://github.com/parnmatt","followers_url":"https://api.github.com/users/parnmatt/followers","following_url":"https://api.github.com/users/parnmatt/following{/other_user}","gists_url":"https://api.github.com/users/parnmatt/gists{/gist_id}","starred_url":"https://api.github.com/users/parnmatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parnmatt/subscriptions","organizations_url":"https://api.github.com/users/parnmatt/orgs","repos_url":"https://api.github.com/users/parnmatt/repos","events_url":"https://api.github.com/users/parnmatt/events{/privacy}","received_events_url":"https://api.github.com/users/parnmatt/received_events","type":"User","site_admin":false},"created_at":"2017-04-12T14:03:23Z","updated_at":"2017-04-12T14:03:23Z","body":"Indeed. In fact it's incorrect to give errors to higher precision than the value you are quoting. \n\n`2` and `2.0` and `2.00` are three different values, as they directly imply the precision of the value/measurement. Thus you cannot say they are the same, but are compatible.\n\nSo in this case, the same precision should be used for the value and uncertainties.\n\n`1.23 +0.45 -0.67` would be fine\n\n`1.23 +0.456 -0.78` doesn't *really* make sense, to be 'valid' all should have the same precision `1.230 +0.456 -0.780`"}}
{"actor":{"display_login":"parnmatt"}}