[Tutor] Integer division Help requested

Joseph John jjk.saji at gmail.com
Wed Oct 4 07:47:49 CEST 2006


HI All
   I am trying out python
I  understoon when
         7/3  gives "2"
But I cannot understand ,
          when i give 7/-3  gives resuls "-3"
I feel
     7/3  should give -2

since  integer  divison returns floor
                               Advice requested
                                               Thanks
                                                      Joseph John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061004/c798432b/attachment.html 


More information about the Tutor mailing list