"Steve D'Aprano" <steve+pyt...@pearwood.info> a écrit dans le message de news:5a33d0fc$0$2087$b1db1813$d948b...@news.astraweb.com...
On Sat, 16 Dec 2017 12:25 am, ast wrote:


"Thomas Jollans" <t...@tjol.eu> a écrit dans le message de
news:mailman.74.1513341235.14074.python-l...@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


--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to