Integer, 64 Bit, signed and unsigned

John Roth newsgroups at jhrothjr.com
Mon Mar 29 14:52:34 EST 2004


"Torsten Mohr" <tmohr at s.netic.de> wrote in message
news:c49t6n$4mh$1 at schleim.qwe.de...
> Hi,
>
> i'd like to use 64 Bit Integer values in Python,
> can anybody give me a hint on what are the limits
> in Python?
>
> Can i use signed and unsigned 64 Bit Integers?

Yes and no. Python has unlimited precision long
integers, so it should work without any special
effort for most things.

If you're trying to exploit truncation at the 64 bit
mark, though, you'll have to do it yourself with
tests.

John Roth
>
>
> Thanks for hints,
> Torsten.
>





More information about the Python-list mailing list