Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!novia!news-out.readnews.com!news-xxxfer.readnews.com!panix!not-for-mail From: Ruben Safir Newsgroups: comp.lang.c++ Subject: implicit promotion Date: Mon, 30 May 2011 01:44:00 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 7 Message-ID: NNTP-Posting-Host: www2.mrbrklyn.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: reader1.panix.com 1306719840 6962 96.57.23.82 (30 May 2011 01:44:00 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Mon, 30 May 2011 01:44:00 +0000 (UTC) X-Blackjet: Blackjet is a Yankee Fan X-DRMisTHEFT: Use GNU Linux today X-From: A Dark Cloud X-LOCATION: Brooklyn NY - Forget abou' it! X-NYLXS: Really - yah think computers are supposed to be broken? User-Agent: Pan/0.133 (House of Butterflies) Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:5815 I feel like an idiot asking this, but why does this need a cast float tot = (float)sum/(float)(tally->size()); Ruben