[Python-Dev] Re: [Edu-sig] Rational Division (fwd)
gvwilson@nevex.com
gvwilson@nevex.com
Mon, 7 Feb 2000 07:36:30 -0500 (EST)
[Brian Harvey is the author of "Computer Science Logo Style", and a
long-time Logophile and educator]
---------- Forwarded message ----------
Date: Sun, 6 Feb 2000 17:21:44 -0800 (PST)
From: Brian Harvey <bh@CS.Berkeley.EDU>
To: gvwilson@nevex.com
Subject: Re: [Python-Dev] Re: [Edu-sig] Rational Division
Hi. There were some early Logo versions in which 2/3 was 0, and 2.0/3.0
was 0.6666, but sure enough, everyone was confused. These days 2/3 is
0.6666, and there's an INT operation that truncates to integer.
Oh, there was a later time when 2/3 was 0.6666 but QUOTIENT 2 3 was 0.
That confused people too. I think some dialects have an INTQUOTIENT
operation that's the same as INT QUOTIENT. :-)