Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!news.glorb.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 22 Jun 2011 09:10:29 -0500 From: Pete Becker Organization: Roundhouse Consulting, Ltd. Newsgroups: comp.lang.c++ Date: Wed, 22 Jun 2011 10:10:29 -0400 Message-ID: <2011062210102947914-pete@versatilecodingcom> References: <589f8b74-d065-44a5-ab9e-81e6a6fcd88b@v12g2000vby.googlegroups.com> <836756d3-a423-4353-ad39-0ef17280a461@x38g2000pri.googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: (simple?) problem with multiplication User-Agent: Unison/2.1.4 Lines: 14 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-scHUfLZ2ocNWGsozbBSLWAH2kqin1d+DvmJoLzXiMH8lmDU/aGQJXYTCUowszTemdkm7gFE5n/po5qL!3IuK2e7MoPD5zTQqXI90HBbnIMC5qVLkDa5ChQKkTlt0ogU3cnMRnjDAMtSdiF5qcmXw+d3G X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1526 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:7058 On 2011-06-22 09:55:49 -0400, gwowen said: > You know that modulo is distributive over multiplication ... But it's not. :-( (5 * 2) % 10 != (5%10) * (2%10) -- Pete Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The Standard C++ Library Extensions: a Tutorial and Reference (www.petebecker.com/tr1book)