This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Marco Sulla
Recipients Marco Sulla
Date 2020-02-28.21:36:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582925764.06.0.47669700025.issue39788@roundup.psfhosted.org>
In-reply-to
Content
(venv_3_9) marco@buzz:~/sources/python-frozendict$ python
Python 3.9.0a0 (heads/master-dirty:d8ca2354ed, Oct 30 2019, 20:25:01) 
[GCC 9.2.1 20190909] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> a = 1E9
>>> type(a)
<class 'float'>

IMHO if the exponent is positive, and the  "base number" (1 in the example) is an integer, the result should be an integer.

Optionally, also if the "base number" has a number of decimal places <= the exponent, the result should be an integer. Example:

1.25E2 == 125

If the user wants a float, it can write

1.2500E2 == 125.0
History
Date User Action Args
2020-02-28 21:36:04Marco Sullasetrecipients: + Marco Sulla
2020-02-28 21:36:04Marco Sullasetmessageid: <1582925764.06.0.47669700025.issue39788@roundup.psfhosted.org>
2020-02-28 21:36:04Marco Sullalinkissue39788 messages
2020-02-28 21:36:03Marco Sullacreate