128 or 96 bit integer types?

mensanator at aol.com mensanator at aol.com
Fri Jul 27 15:01:41 EDT 2007


On Jul 27, 1:27 pm, Peter Otten <__pete... at web.de> wrote:
> Robert Dailey wrote:
> > Is there build-in or third party support for large integer types, such
> > as 96 or 128 bits in size? I require such large sizes for precision
> > issues (nanoseconds). Thanks.
> >>> SECOND = 10**9
> >>> YEAR = 365*24*60*60
> >>> 2**128/SECOND/YEAR
>
> 10790283070806014188970L
>
> What are you measuring? The age of the universe? In nanoseconds?
>
> :-)

Well, 2**96 would only be 2512308552583 years.

>
> Peter





More information about the Python-list mailing list