[MATRIX-SIG] Re: int. division

Holger St. John stjohn@gav.gat.com
Wed, 21 Jan 1998 10:00:05 -0800


I know that this group has gone south for the winter when I read stuff
like this :-)



> >  >  ......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...
>



Holger St. John

General Atomics



_______________
MATRIX-SIG  - SIG on Matrix Math for Python

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