[Tutor] Division

Tim Peters tim.one@home.com
Mon, 3 Dec 2001 13:16:59 -0500


[alan.gauld@bt.com]
> Just one point is that maybe for an education in programming
> they should use the old style division behaviour - its how
> the vast majority of programming languages work and is a
> great way to see how the computer is working under the covers.

Actually, truncating integer division is largely confined to C and Fortran
and their derivatives.  The list of languages that don't truncate starts
with Algol 60 and Lisp, and includes JavaScript, Visual Basic, Perl, PHP,
Smalltalk, AWK, Prolog, Pascal, COBOL, ABC, and Python with -Qnew <wink>.