{"action":"opened","issue":{"url":"https://api.github.com/repos/hgrecco/pint/issues/656","repository_url":"https://api.github.com/repos/hgrecco/pint","labels_url":"https://api.github.com/repos/hgrecco/pint/issues/656/labels{/name}","comments_url":"https://api.github.com/repos/hgrecco/pint/issues/656/comments","events_url":"https://api.github.com/repos/hgrecco/pint/issues/656/events","html_url":"https://github.com/hgrecco/pint/issues/656","id":342908744,"node_id":"MDU6SXNzdWUzNDI5MDg3NDQ=","number":656,"title":"A function to convert to engineering notation","user":{"login":"jondoesntgit","id":7480168,"node_id":"MDQ6VXNlcjc0ODAxNjg=","avatar_url":"https://avatars2.githubusercontent.com/u/7480168?v=4","gravatar_id":"","url":"https://api.github.com/users/jondoesntgit","html_url":"https://github.com/jondoesntgit","followers_url":"https://api.github.com/users/jondoesntgit/followers","following_url":"https://api.github.com/users/jondoesntgit/following{/other_user}","gists_url":"https://api.github.com/users/jondoesntgit/gists{/gist_id}","starred_url":"https://api.github.com/users/jondoesntgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jondoesntgit/subscriptions","organizations_url":"https://api.github.com/users/jondoesntgit/orgs","repos_url":"https://api.github.com/users/jondoesntgit/repos","events_url":"https://api.github.com/users/jondoesntgit/events{/privacy}","received_events_url":"https://api.github.com/users/jondoesntgit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-19T22:18:06Z","updated_at":"2018-07-19T22:18:06Z","closed_at":null,"author_association":"NONE","body":"Are there plans to convert units to engineering notation?\r\n\r\n```python\r\n>>> from pint import _DEFAULT_REGISTRY\r\n>>> ureg = _DEFAULT_REGISTRY\r\n>>> Q_ = ureg.Quantity\r\n>>> force = Q_('85 newtons')\r\n>>> area = Q_('12 in^2')\r\n>>>\r\n>>> pressure = force / area\r\n>>> pressure\r\n<Quantity(7.083333333333333, 'newton / inch ** 2')>\r\n>>> pressure.to('newtons', engineering_prefix=True)\r\n<Quantity(10.979188625043918, 'kilopascal')>\r\n```\r\nWhat I'd like is a function that will return the unit with an automatically-defined prefix (kilo, mega, giga, micro, etc...). It makes it much easier for plotting purposes."}}
{"actor":{"display_login":"jondoesntgit"}}