nisse at lysator.liu.se (Niels Möller) writes: Ooops. Now it should be in. What are the specs for div2? Surely n1 > 0 and d1 > 0. Also N >= D? Does the new div2 always compute the "accurate" quotient, i.e., with the remainder R < D? I'm asking as I believe strongly in unit testing of these types of non-trivial idioms. :-) -- Torbjörn Please encrypt, key id 0xC8601622