[MATRIX-SIG] Re: int. division

John Turner turner@blueskystudios.com
Mon, 19 Jan 1998 20:19:51 -0500


Charles G. Waldman writes:
 > 
 > David J. C. Beach writes:
 >  > 
 >  > Allow me to reiterate Paul Dubois's argument.  Consider the
 >  > code:
 >  > 
 >  >             x = i / j
 >  > 
 >  > Now, suppose i=2 and j=4.  Then x will be the integer, 2.
 >  > Everybody agrees on this.
 > 
 > Well, not everybody.  I would have 2/4 == 2.0 and 2//4 == 2

Call me crazy, but somehow I'm not comfortable with the result of 2/4
being either 2 *or* 2.0... 

:)

-- 
John A. Turner                       mailto:turner@blueskystudios.com
Senior Research Associate            http://www.blueskystudios.com
Blue Sky | VIFX                      http://www.vifx.com
One South Road, Harrison, NY 10528   http://www.lanl.gov/home/turner
Phone: 914-381-8400                  Fax: 914-381-9790/1

_______________
MATRIX-SIG  - SIG on Matrix Math for Python

send messages to: matrix-sig@python.org
administrivia to: matrix-sig-request@python.org
_______________