Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > Re: -1%N = -1
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 14 Topic 9512 of 10104
Post > Topic >>

Re: -1%N = -1

by Seungbeom Kim <musiphil@[EMAIL PROTECTED] > Apr 17, 2008 at 04:15 PM

Maarten Kronenburg wrote:
> The remainder has the sign of the dividend,
> the modulo has the sign of the divisor
> (if not zero).

Are these commonly accepted definitions?

Remainder seems to allow both cases, and modulo is actually the name
of the operation, not the result.

http://en.wikipedia.org/wiki/Remainder
"[T]here are two possible choices for the remainder [... and]
for the quotient."

http://en.wikipedia.org/wiki/Modulo
"a modulo n is the remainder after numerical division of a by n,
under certain constraints."

http://en.wikipedia.org/wiki/Modulo_operation
"In computing, the _modulo_ operation finds the _remainder_
of division of one number by another."
(emphasis mine)

-- 
Seungbeom Kim

      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]
 




 14 Posts in Topic:
-1%N = -1
OuFeRRaT <ouferrat@[EM  2008-04-17 03:52:00 
Re: -1%N = -1
Thomas Richter <thor@[  2008-04-17 11:36:17 
Re: -1%N = -1
Marco Manfredini <ok_n  2008-04-17 11:41:52 
Re: -1%N = -1
Francis Glassborow <fr  2008-04-17 11:43:14 
Re: -1%N = -1
guinness.tony@[EMAIL PROT  2008-04-17 11:41:28 
Re: -1%N = -1
"Maarten Kronenburg&  2008-04-17 12:03:20 
Re: -1%N = -1
Seungbeom Kim <musiphi  2008-04-17 16:15:48 
Re: -1%N = -1
"Maarten Kronenburg&  2008-04-17 19:33:50 
Re: -1%N = -1
OuFeRRaT <ouferrat@[EM  2008-04-18 17:14:06 
Re: -1%N = -1
John G Harris <news0@[  2008-04-19 02:01:59 
Re: -1%N = -1
Thomas Richter <thor@[  2008-04-19 18:12:30 
Re: -1%N = -1
peter koch larsen <pet  2008-04-20 15:46:04 
Re: -1%N = -1
"Maarten Kronenburg&  2008-04-20 15:49:33 
Re: -1%N = -1
John G Harris <news0@[  2008-04-20 15:49:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 22:38:23 CDT 2008.