I think a problem occured when i used long()

Paul Rubin http
Wed Sep 1 22:40:23 CEST 2004

alikakakhel3 at hotmail.com (Ali) writes:
> >>> x = 5.07e-25
> >>> x = long(x)
> >>> print x
> 0L
> Um... I was under the impresion that long numbers had very very long
> precision. But, it seems that in this case it rounded it to zero :(

Longs are arbitrary precision integers.

More information about the Python-list mailing list