Fwd: KCalc - Modulo Function

Leo Savernik l.savernik at aon.at
Mon Feb 13 20:43:29 GMT 2006


Am Montag, 13. Februar 2006 16:16 schrieb Adriaan de Groot:
> On Mon, 13 Feb 2006, Gunnar Schmi Dt wrote:
> > Both "-7 mod 3 = -1" and "-7 mod 3 = 2" are correct. If I read the mail
> > from the original author correctly he requests that "-7 mod 3 = 1", which
> > is mathematically wrong.
>
> No, he wants it to be -1, matching the sign of (-7), which is what Windows
> does. Given that -1 = 2 (mod 3) it's moot anyway in a mathematical sense.
> In any case, one can argue for one choice or the other till one is blue in
> the face -- it's a matter of definition anyway.
>

Let's make it configurable ;-)

mfg
	Leo




More information about the kde-core-devel mailing list