[Python-ideas] integer dividion in R

spir ☣ denis.spir at gmail.com
Fri May 7 09:28:42 CEST 2010


Hello,


The following point came up on the python-tutor mailing list:

spir at 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.
>>> 4//3
1
>>> -4//3
-2

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



More information about the Python-ideas mailing list