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 Camion
Recipients Camion, gvanrossum, rhettinger
Date 2021-01-10.23:51:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1610322703.84.0.851430287132.issue42886@roundup.psfhosted.org>
In-reply-to
Content
math.log10 works perfectly on integers which are too large to be converted to floats. I see no reason why it couldn't work as well with fractions.

>>> math.log10(math.factorial(10000))
35659.45427452078
>>> math.log10(math.factorial(1000000))
5565708.917186718
>>> math.log10(float(math.factorial(10000)))
Traceback (most recent call last):
  File "<pyshell#36>", line 1, in <module>
    math.log10(float(math.factorial(10000)))
OverflowError: int too large to convert to float
History
Date User Action Args
2021-01-10 23:51:43Camionsetrecipients: + Camion, gvanrossum, rhettinger
2021-01-10 23:51:43Camionsetmessageid: <1610322703.84.0.851430287132.issue42886@roundup.psfhosted.org>
2021-01-10 23:51:43Camionlinkissue42886 messages
2021-01-10 23:51:43Camioncreate