{"action":"created","issue":{"url":"https://api.github.com/repos/Humanizr/Humanizer/issues/503","labels_url":"https://api.github.com/repos/Humanizr/Humanizer/issues/503/labels{/name}","comments_url":"https://api.github.com/repos/Humanizr/Humanizer/issues/503/comments","events_url":"https://api.github.com/repos/Humanizr/Humanizer/issues/503/events","html_url":"https://github.com/Humanizr/Humanizer/issues/503","id":123099318,"number":503,"title":"ToQuantity does not support long quantities","user":{"login":"pshrosbree","id":936560,"avatar_url":"https://avatars.githubusercontent.com/u/936560?v=3","gravatar_id":"","url":"https://api.github.com/users/pshrosbree","html_url":"https://github.com/pshrosbree","followers_url":"https://api.github.com/users/pshrosbree/followers","following_url":"https://api.github.com/users/pshrosbree/following{/other_user}","gists_url":"https://api.github.com/users/pshrosbree/gists{/gist_id}","starred_url":"https://api.github.com/users/pshrosbree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pshrosbree/subscriptions","organizations_url":"https://api.github.com/users/pshrosbree/orgs","repos_url":"https://api.github.com/users/pshrosbree/repos","events_url":"https://api.github.com/users/pshrosbree/events{/privacy}","received_events_url":"https://api.github.com/users/pshrosbree/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Humanizr/Humanizer/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/Humanizr/Humanizer/labels/jump%20in","name":"jump in","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/Humanizr/Humanizer/milestones/2","html_url":"https://github.com/Humanizr/Humanizer/milestones/vNext","labels_url":"https://api.github.com/repos/Humanizr/Humanizer/milestones/2/labels","id":1380753,"number":2,"title":"vNext","description":"","creator":{"login":"onovotny","id":1427284,"avatar_url":"https://avatars.githubusercontent.com/u/1427284?v=3","gravatar_id":"","url":"https://api.github.com/users/onovotny","html_url":"https://github.com/onovotny","followers_url":"https://api.github.com/users/onovotny/followers","following_url":"https://api.github.com/users/onovotny/following{/other_user}","gists_url":"https://api.github.com/users/onovotny/gists{/gist_id}","starred_url":"https://api.github.com/users/onovotny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onovotny/subscriptions","organizations_url":"https://api.github.com/users/onovotny/orgs","repos_url":"https://api.github.com/users/onovotny/repos","events_url":"https://api.github.com/users/onovotny/events{/privacy}","received_events_url":"https://api.github.com/users/onovotny/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-10-28T02:52:47Z","updated_at":"2016-01-01T23:24:10Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-12-19T17:32:27Z","updated_at":"2016-01-01T23:24:25Z","closed_at":null,"body":"It would be useful if ToQuantity supported long quantities in addition to int. Something like the following would work but will not honor ShowQuantityAs.Words for large positive or negative quantity values:\r\n```csharp\r\npublic static string ToQuantity(this string input, long quantity, ShowQuantityAs showQuantityAs = ShowQuantityAs.Numeric, string format = null, IFormatProvider formatProvider = null)\r\n{\r\n    var str = quantity == 1 ? input.Singularize(false) : input.Pluralize(false);\r\n    if (showQuantityAs == ShowQuantityAs.None)\r\n        return str;\r\n    if ((showQuantityAs == ShowQuantityAs.Numeric) || (quantity > int.MaxValue) || (quantity < int.MinValue))\r\n        return string.Format(formatProvider, \"{0} {1}\", quantity.ToString(format, formatProvider), str);\r\n    return string.Format(\"{0} {1}\", ((int) quantity).ToWords(), str);\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Humanizr/Humanizer/issues/comments/168350149","html_url":"https://github.com/Humanizr/Humanizer/issues/503#issuecomment-168350149","issue_url":"https://api.github.com/repos/Humanizr/Humanizer/issues/503","id":168350149,"user":{"login":"onovotny","id":1427284,"avatar_url":"https://avatars.githubusercontent.com/u/1427284?v=3","gravatar_id":"","url":"https://api.github.com/users/onovotny","html_url":"https://github.com/onovotny","followers_url":"https://api.github.com/users/onovotny/followers","following_url":"https://api.github.com/users/onovotny/following{/other_user}","gists_url":"https://api.github.com/users/onovotny/gists{/gist_id}","starred_url":"https://api.github.com/users/onovotny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onovotny/subscriptions","organizations_url":"https://api.github.com/users/onovotny/orgs","repos_url":"https://api.github.com/users/onovotny/repos","events_url":"https://api.github.com/users/onovotny/events{/privacy}","received_events_url":"https://api.github.com/users/onovotny/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T23:24:25Z","updated_at":"2016-01-01T23:24:25Z","body":"Tagging as vNext unless this can be completed in the next couple of weeks."}}