new topic     » goto parent     » topic index » view thread      » older message » newer message

h=domainkey-signature:received:received:from:to:date:mime-version:subject:message-id:priority:in-reply-to:references:x-pgp-keyid:x-pgp-web2get:x-pgp-mail2get:x-mailer:content-type:content-transfer-encoding:content-description;
         bh=wY9eMse4AsUMrhy3VJa5tYPciQ/WjwBSLWJ8mjiADco=;
 
b=nhTMZQhTXPkcezjKneSH+NTm2kWPgMIbsf1ciIeVaRkK15wz7pPl+pdxUYXgXeFdN+aR5EJo2z8p80SjLs84Txi43o9mNu6ABUcnVVAYLNy/2LnrADLcLjKSVd/bsSmDbAr0eS9jxRtUn5BD+4UUzDMqn/VEHMaGzLpvjITKUog=
DomainKey-Signature: a=rsa-sha1; c=nofws;
         d=gmail.com; s=gamma;
 
h=from:to:date:mime-version:subject:message-id:priority:in-reply-to:references:x-pgp-keyid:x-pgp-web2get:x-pgp-mail2get:x-mailer:content-type:content-transfer-encoding:content-description;
 
b=d/H8Fgl/4MnjnLVeAsCv/sPWIOrm/6IuHHOXyiloTIMKoXy2PJfucE854dl5gH/zIuMaTYufFioEtAWmANX5PGGFH4nTGMgKjzJRdL+TYcEENclj0gDnTd1RXSqNUj/7kr+4h2XwKR4Q16SHQWANymlI4DvrhHoKBwUTtES/Q6g=
Received: by 10.150.69.41 with SMTP id r41mr5574597yba.128.1209952103259;
         Sun, 04 May 2008 18:48:23 -0700 (PDT)
Received: from ?192.168.0.3? ( [200.159.215.207])
         by mx.google.com with ESMTPS id 
9sm12121052ywf.2.2008.05.04.18.48.20
         (version=TLSv1/SSLv3 cipher=OTHER);
         Sun, 04 May 2008 18:48:22 -0700 (PDT)
From: "Euler German" <eulerg at gmail.com>
To: EUforum at topica.com
Date: Sun, 04 May 2008 22:47:58 -0300
MIME-Version: 1.0
Subject: Re: remainder() is not right
Message-ID: <481E3D1E.23029.969FA0 at eulerg.gmail.com>
Priority: normal
In-reply-to: <491977603-1463792126-1209944434 at boing.topica.com>
References: <491977603-1463792126-1209944434 at boing.topica.com>
X-PGP-KeyID: 0xB65367CB
X-PGP-Web2Get: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xB65367CB
X-PGP-Mail2Get: 
<mailto:pgp-public-keys at pgp.uk.demon.net&Subject=GET%200xB65367CB>
X-mailer: Pegasus Mail for Windows (4.41)
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body

> On 4 May 2008 at 16:40, CChris wrote (maybe snipped):

> It returns *a* emainder. When a and b are positive, this is the
> expected value. When signs are otherwise, then a discrepancy appears
> with what, in arithmetic, is called "remainder".
> 
> CChris
> 

Please, I'm not discussing mathematical discrepancies. I only stated
that remainder(), as described in reference manual, works as said,
thus returning the "left over" of a division, so it can't be told
wrong. I'm NOT saying there's no need for a "signed_remainder()",
though I have no use for it. YMMV.

Some quick explanation at:
- http://en.wikipedia.org/wiki/Remainder
- http://en.wikipedia.org/wiki/Modulo_operation

Best,
Euler

-- 
_
_| euler f german
_| sete lagoas, mg, brazil
_| efgerman{AT}gmail{DOT}com
_| -----------------------------
_| Reply preferably to the list,
_| or to the address above. Thx!

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu