question about math module notation
Paul Rubin
http
Thu Jul 26 16:59:12 EDT 2007
brad <byte8bits at gmail.com> writes:
> Ah yes, that works too... thanks. I've settled on doing it this way:
> print int(math.pow(2,64))
> I like the added parenthesis :)
I was surprised to find that gives an exact (integer, not
floating-point) answer. Still, I think it's better to say 2**64
which also works for (e.g.) 2**10000 where math.pow(2,10000)
raises an exception.
More information about the Python-list
mailing list