Dnia 17-04-2007, wto o godzinie 20:55 +0100, Ben Harris napisa?(a):
> All of the examples of the div and mod operations in section 9.3.3 on
> page 40 have x1 positive, which misses an opportunity for readers to
> confirm that they've understood the operations correctly. I would
> suggest adding some of the following:
>
> -5 div 3 = -2
> -5 div -3 = 2
> -5 mod 3 = 1
> -5 mod -3 = 1
I think it's more helpful to use 123 / 10 in examples, which makes
obvious what is rounded up and what is rounded down, and from which
end the remainder is subtracted, without even having to think which is
the quotient and which is the remainder.
--
__("< Marcin Kowalczyk
\__/ qrczak at knm.org.pl
^^ http://qrnik.knm.org.pl/~qrczak/
Received on Sat Apr 21 2007 - 06:48:10 UTC