[Tutor] Division
alan.gauld@bt.com
alan.gauld@bt.com
Tue, 4 Dec 2001 11:07:22 -0000
> > they should use the old style division behaviour - its how
> > the vast majority of programming languages work and is a
> Actually, truncating integer division is largely confined to
> C and Fortran and their derivatives.
Guess that gives away where my programming career started then :-)
> Basic, Smalltalk, AWK, Prolog, Pascal, COBOL,
Hmm, I've used all of these but thinking about it you're right
they have a separate integer division operator that truncates
but by default convert to float for division results.
OK, I withdraw the objection :-)
Alan G.