Splitting numeric litterals
Terry Reedy
tjreedy at udel.edu
Fri Jul 16 18:51:54 EDT 2010
> On 7/16/10 12:30 PM, bart.c wrote:
>> they have to be exact. So if you wanted to hardcode 1000! for some
>> reason, you'd
>> need some 2568 digits which is a little awkward on one line.
No, only 20 digits
>>> math.factorial(1000)
402387260077093773543702433923003985719374 ...
Most big ints people want to work with can be encoded similarly.
--
Terry Jan Reedy
More information about the Python-list
mailing list