I think a problem occured when i used long()

Grant Edwards grante at visi.com
Wed Sep 1 15:28:29 EDT 2004


On 2004-09-01, Ali <alikakakhel3 at hotmail.com> wrote:
> I did the folloing in python shell:
>
>>>> 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 :(
>
> Please Help. Thank you :)

Um... what did you expect the integer value of 5.07e-25 to be?

-- 
Grant Edwards                   grante             Yow!  .. I see TOILET
                                  at               SEATS...
                               visi.com            



More information about the Python-list mailing list