Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!uunet!mstan!amull From: amull@Morgan.COM (Andrew P. Mullhaupt) Newsgroups: comp.lang.pascal Subject: Re: Problem in Turbo Pascal 4.0 Summary: WRONG!!!! Message-ID: <776@s5.Morgan.COM> Date: 10 Mar 90 17:56:21 GMT References: <4658@ur-cc.UUCP> <8674@bunny.GTE.COM> Organization: Morgan Stanley & Co. NY, NY Lines: 13 In article <8674@bunny.GTE.COM>, as02@bunny.gte.com writes: > Never use real numbers for a loop count; use an integer counter . This advice is often good. But it is spectacularly bad if you need a counter to go through really huge values. Then doubles or extendeds make sense, but reals are probably borderline, because you might be able to do two longint steps in one real. I use a 486 so floating point is VERY fast. I actually have had to use a double as a counter just the other day... Later, Andrew Mullhaupt