arbitrary long integer aritmetics

François Pinard pinard at iro.umontreal.ca
Wed Jul 2 06:05:54 EDT 2003


[Leo]

> is there a python module around allow using arbitrary long integers?

Hi.  No need for a module, this is all builtin in Python.

On older version of Pythons, you needed an explicit `long(INTEGER)' to get
into the realm of long integers, or else, an explicit `L' suffix to an
integer constant.  On recent Pythons, `a*b' should automatically produce a
long result even if both `a' and `b' are simple (short) integers, without
any kind of clue that the result will be long.

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard





More information about the Python-list mailing list