Path: utzoo!utgpu!water!watmath!clyde!rutgers!mit-eddie!bloom-beacon!gatech!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!iuvax!bsu-cs!dhesi From: dhesi@bsu-cs.UUCP (Rahul Dhesi) Newsgroups: comp.lang.c Subject: Re: How not to write a loop Message-ID: <2115@bsu-cs.UUCP> Date: 14 Feb 88 16:13:35 GMT References: <560@naucse.UUCP> <1988Feb11.200149.25172@sq.uucp> Reply-To: dhesi@bsu-cs.UUCP (Rahul Dhesi) Organization: CS Dept, Ball St U, Muncie, Indiana Lines: 11 In article <1988Feb11.200149.25172@sq.uucp> msb@sq.UUCP (Mark Brader) writes: > Floating point numbers should never be used for counting. Never say never. (Well, hardly ever say never.) At least one widely-used implementation of Snobol4 successfully uses a floating point register to count the number of statements executed, relying on floating point overflow being detected by hardware so that the program may be aborted when the user-specified statement count limit is reached. -- Rahul Dhesi UUCP: !{iuvax,pur-ee,uunet}!bsu-cs!dhesi