{"action":"opened","issue":{"url":"https://api.github.com/repos/xfix/python-format/issues/8","repository_url":"https://api.github.com/repos/xfix/python-format","labels_url":"https://api.github.com/repos/xfix/python-format/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/xfix/python-format/issues/8/comments","events_url":"https://api.github.com/repos/xfix/python-format/issues/8/events","html_url":"https://github.com/xfix/python-format/issues/8","id":336870183,"node_id":"MDU6SXNzdWUzMzY4NzAxODM=","number":8,"title":"exponents 1-9 should use 2 digits instead of 1","user":{"login":"fcrick","id":283047,"node_id":"MDQ6VXNlcjI4MzA0Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/283047?v=4","gravatar_id":"","url":"https://api.github.com/users/fcrick","html_url":"https://github.com/fcrick","followers_url":"https://api.github.com/users/fcrick/followers","following_url":"https://api.github.com/users/fcrick/following{/other_user}","gists_url":"https://api.github.com/users/fcrick/gists{/gist_id}","starred_url":"https://api.github.com/users/fcrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fcrick/subscriptions","organizations_url":"https://api.github.com/users/fcrick/orgs","repos_url":"https://api.github.com/users/fcrick/repos","events_url":"https://api.github.com/users/fcrick/events{/privacy}","received_events_url":"https://api.github.com/users/fcrick/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-29T05:44:13Z","updated_at":"2018-06-29T05:44:13Z","closed_at":null,"author_association":"NONE","body":"One difference from python I noticed. Python always uses at least 2 digits for exponents.\r\n\r\n```\r\n>>> repr(2e-6)\r\n'2e-06'\r\n```\r\n\r\nwhereas python-format can use a single digit:\r\n\r\n```\r\nconsole.log(pythonFormat('{}', 2e-6))\r\n\"2e-6\"\r\n```\r\n\r\nI think it's from `pystrtod.c` where it says\r\n\r\n```\r\n/* From the C99 standard, section 7.19.6:\r\nThe exponent always contains at least two digits, and only as many more digits\r\nas necessary to represent the exponent.\r\n*/\r\n#define MIN_EXPONENT_DIGITS 2\r\n```"}}
{"actor":{"display_login":"fcrick"}}