[clean-list] Re: A silly question about (mod)
Jerzy Karczmarczuk
karczma@info.unicaen.fr
Tue, 25 Sep 2001 15:49:23 +0200
Siegfried Gonzi answers my provocative query:
> >What is the difference between (mod) and (rem)?
> It seems (at least on Unix and Clean 1.3.3) there is no difference. Both
> of the 2 functions "rem" and "mod" always deliver the same result.
Exactly.
It took me some time to find a stupid bug; I thought that (mod) keeps the
sign of the divisor, but it doesn't. I suspect that this is an unintentional
overlook, not a "feature" of the language...
Any opinion of The Clean Force?
Jerzy Karczmarczuk