
Hello, The following point came up on the python-tutor mailing list: spir@o:~$ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more information.
The algorithm seems to use floor, not integral part. Is this correct, according to the (math) definition of integer division? Denis ________________________________ vit esse estrany ☣ spir.wikidot.com

2010/5/7 spir ☣ <denis.spir@gmail.com>:
There was *literally* just a thread about essentially the same thing: http://mail.python.org/pipermail/python-ideas/2010-May/007170.html Short answer: Yes, because there are multiple valid ways to define integer quotient and modulo. Cheers, Chris -- http://blog.rebertia.com

2010/5/7 spir ☣ <denis.spir@gmail.com>:
There was *literally* just a thread about essentially the same thing: http://mail.python.org/pipermail/python-ideas/2010-May/007170.html Short answer: Yes, because there are multiple valid ways to define integer quotient and modulo. Cheers, Chris -- http://blog.rebertia.com
participants (2)
-
Chris Rebert
-
spir ☣