[docs] Doc Error
Toby Hart Dyke
toby at hartdyke.com
Tue Apr 16 02:35:13 CEST 2013
On the first listing under
http://docs.python.org/2/tutorial/introduction.html#numbers, it says:
>>># Integer division returns the floor:
...7/3
That may be true for python 2, but in my version of python 3 (3.3.1 on
Windows 64-bit). It gives a float:
2.3333333333333335
There's a similar issue with the example before, where(50-5*6)/4 should
give 5.0 rather than 5.
Thought you might like to know!
Toby
More information about the docs
mailing list