{"action":"created","issue":{"url":"https://api.github.com/repos/nholthaus/units/issues/81","repository_url":"https://api.github.com/repos/nholthaus/units","labels_url":"https://api.github.com/repos/nholthaus/units/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/nholthaus/units/issues/81/comments","events_url":"https://api.github.com/repos/nholthaus/units/issues/81/events","html_url":"https://github.com/nholthaus/units/issues/81","id":241410663,"number":81,"title":"Unexpected output from units::concentration::percent_t::to<...>()","user":{"login":"GElliott","id":2058234,"avatar_url":"https://avatars0.githubusercontent.com/u/2058234?v=3","gravatar_id":"","url":"https://api.github.com/users/GElliott","html_url":"https://github.com/GElliott","followers_url":"https://api.github.com/users/GElliott/followers","following_url":"https://api.github.com/users/GElliott/following{/other_user}","gists_url":"https://api.github.com/users/GElliott/gists{/gist_id}","starred_url":"https://api.github.com/users/GElliott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GElliott/subscriptions","organizations_url":"https://api.github.com/users/GElliott/orgs","repos_url":"https://api.github.com/users/GElliott/repos","events_url":"https://api.github.com/users/GElliott/events{/privacy}","received_events_url":"https://api.github.com/users/GElliott/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-08T00:24:50Z","updated_at":"2017-07-08T02:33:50Z","closed_at":null,"body":"Consider the following program:\r\n\r\n    units::concentration::percent_t x(100.0);\r\n    double y = x.to<double>();\r\n    std::cout << x << std::endl;\r\n    std::cout << y << std::endl;\r\n\r\nOutput:\r\n\r\n    100 pct\r\n    1\r\n\r\nI would have expected the scale of the output of `percent_t::to<>()` to match the scale of the constructor parameter.  However, a value of `100` goes in, but a value of `1` comes out.  Is this behavior as intended?"},"comment":{"url":"https://api.github.com/repos/nholthaus/units/issues/comments/313828169","html_url":"https://github.com/nholthaus/units/issues/81#issuecomment-313828169","issue_url":"https://api.github.com/repos/nholthaus/units/issues/81","id":313828169,"user":{"login":"nholthaus","id":10323743,"avatar_url":"https://avatars2.githubusercontent.com/u/10323743?v=3","gravatar_id":"","url":"https://api.github.com/users/nholthaus","html_url":"https://github.com/nholthaus","followers_url":"https://api.github.com/users/nholthaus/followers","following_url":"https://api.github.com/users/nholthaus/following{/other_user}","gists_url":"https://api.github.com/users/nholthaus/gists{/gist_id}","starred_url":"https://api.github.com/users/nholthaus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nholthaus/subscriptions","organizations_url":"https://api.github.com/users/nholthaus/orgs","repos_url":"https://api.github.com/users/nholthaus/repos","events_url":"https://api.github.com/users/nholthaus/events{/privacy}","received_events_url":"https://api.github.com/users/nholthaus/received_events","type":"User","site_admin":false},"created_at":"2017-07-08T02:33:50Z","updated_at":"2017-07-08T02:33:50Z","body":"that's as designed. 1.0/1.0 == 100%. "}}
{"actor":{"display_login":"nholthaus"}}