why the inconsistency?
Christos TZOTZIOY Georgiou
tzot at sil-tec.gr
Wed Sep 24 12:32:41 EDT 2003
On Wed, 24 Sep 2003 19:26:41 +0300, rumours say that Christos "TZOTZIOY"
Georgiou <tzot at sil-tec.gr> might have written:
>If only math.log(2**64)/math.log(10) worked with longs without
>converting them into floats first... :(
And after reading the FM, if only
def count_digits(x):
return int(math.log(x, 10))
worked correctly for *all* large values, like 10**70...
--
TZOTZIOY, I speak England very best,
Microsoft Security Alert: the Matrix began as open source.
More information about the Python-list
mailing list