Problem with timeit

ast nomail at com.invalid
Mon Dec 18 10:27:28 EST 2017


"Steve D'Aprano" <steve+python at pearwood.info> a écrit dans le message de 
news:5a33d0fc$0$2087$b1db1813$d948b532 at news.astraweb.com...
> On Sat, 16 Dec 2017 12:25 am, ast wrote:
>
>>
>> "Thomas Jollans" <tjol at tjol.eu> a écrit dans le message de
>> news:mailman.74.1513341235.14074.python-list at python.org...
>>> On 2017-12-15 11:36, ast wrote:
>>
>>


>
> py> x = 123456**123456
> py> s = str(x)
> py> len(s)
> 628578
>


I discovered that log functions from math module
works with integers, whatever their size, there is
no conversion to float.

> import math
> x = 123456**123456
> math.log10(x)
628577.7303641582   (instantaneous)

so 628578 digits





More information about the Python-list mailing list