From: Eddie R. <er...@bm...> - 2008-07-07 23:39:48
|
On Tue, 2008-07-08 at 01:29 +0200, Albert Graef wrote: > Ok, do you have definitions of div and mod for all other cases? Note > that then we also need definitions for the rational and complex numbers > in math.pure. > > I must admit that I never gave this much thought. Pure inherited div and > mod from Q which inherited them from Pascal which in turn inherited them > (I guess) from Algol 60. I'm not against extending them in a reasonable > manner. :) A reasonable manner suggests x = (x mod N) + (x div N) * N. I didn't make this up. By the way, I noticed my MzScheme only accepts integers for both the modulo and remainder functions. e.r. |