Xref: utzoo comp.lang.modula2:1243 comp.lang.c:15901 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!mirror!ima!think!barmar From: barmar@think.COM (Barry Margolin) Newsgroups: comp.lang.modula2,comp.lang.c Subject: Re: "for" loops (was Re: C++ vs. Modula2) Message-ID: <35916@think.UUCP> Date: 30 Jan 89 20:32:51 GMT References: <739@jupiter.iis.UUCP> <19579@agate.BERKELEY.EDU> <1381@X.UUCP> Sender: news@think.UUCP Reply-To: barmar@kulla.think.com.UUCP (Barry Margolin) Organization: Thinking Machines Corporation, Cambridge, MA Lines: 18 In article <1381@X.UUCP> john@frog.UUCP (John Woods) writes: ]In article <19579@agate.BERKELEY.EDU>, bowles@eris.berkeley.edu (Jeff A. Bowles) writes: ]> If I had a nickel for every time, in Fortran, ]> that I needed a loop that ran from 0.0 to 1.0 by 0.1 (or the like) ]...you'd be broke. You NEVER need a loop that runs from 0.0 to 1.0 by 0.1. ]1/10 is a repeating fraction in binary Just because Fortran can't do it doesn't mean that he doesn't NEED it; it just means he can't GET it. Since the real world mostly works in decimal, I imagine that the need is frequent. Luckily, there are well-known and easy ways around this problem. Barry Margolin Thinking Machines Corp. barmar@think.com {uunet,harvard}!think!barmar