division bug?

Duncan Booth me at privacy.net
Wed Jun 9 11:06:42 EDT 2004


milanmor at yahoo.com (Milan) wrote in 
news:964246.0406090655.7e190def at posting.google.com:

> a program:
> 
> a=10
> b=5
> print a/b
> 
> and its result: 0. If you run the program, you see always a sero (0),
> but 10/5 is 2. Who can help me?
> 
> 

I don't know who can help you, but this is a Python newsgroup and if you 
try your program in Python it prints 2, so perhaps you are using some other 
language:

>>> a=10
>>> b=5
>>> print a/b
2

If you are using Python, try cutting and pasting the exact code and the 
problem you think you see, and we can try to help you from there.



More information about the Python-list mailing list