Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!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: Mon, 30 May 2011 14:29:17 -0500 From: Pete Becker Organization: Roundhouse Consulting, Ltd. Newsgroups: comp.lang.c++ Date: Mon, 30 May 2011 09:29:17 -1000 Message-ID: <2011053009291793090-pete@versatilecodingcom> References: <2011053009235252042-pete@versatilecodingcom> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: implicit promotion User-Agent: Unison/2.1.4 Lines: 16 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-WZ99js++au4NH04FR9I5P5a4wdYgqiSgLnq/TWolvd2cH9v715rCa26uVSD9CCNo+4XCjft2jwztFbC!gR033gMziON++t39PlxP0SDmaLt4wl9WHaei4Hizi98Wp2Jglag4wBteUFS54kegVCl/8S4= 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: 1630 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c++:5846 On 2011-05-30 09:23:52 -1000, Pete Becker said: > > Well, yes, up to some precision. But it's often the case that the > largest value that can be represented as an int cannot be represented > exactly as a float. 32-bit ints and 32-bit doubles, for example. > Whoops, should have been: "32-bit ints and 32-bit floats, for example." -- Pete Roundhouse Consulting, Ltd. (www.versatilecoding.com) Author of "The Standard C++ Library Extensions: a Tutorial and Reference (www.petebecker.com/tr1book)