Why does int(5.0) returns 0
Erik Max Francis
max at alcyone.com
Sun Jan 26 23:07:30 EST 2003
Samir Patel wrote:
> Here is verbose output of program: print int(5.0)
>
> It outputs 0
You should us verbose output, but not your input. Are you really sure
that's what the program said? If so, your Python installation is
seriously broken.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ This moment is mine / So I'm taking my time
\__/ Chante Moore
Church / http://www.alcyone.com/pyos/church/
A lambda calculus explorer in Python.
More information about the Python-list
mailing list