Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!cs.dal.ca!silvert From: silvert@cs.dal.ca (Bill Silvert) Newsgroups: comp.lang.pascal Subject: Re: Problem in Turbo Pascal 4.0 Summary: multiply is faster than divide Message-ID: <1989Dec31.145504.2373@cs.dal.ca> Date: 31 Dec 89 14:55:04 GMT References: <4658@ur-cc.UUCP> <4660@ur-cc.UUCP> Sender: silvert@cs.dal.ca.UUCP (Bill Silvert) Reply-To: bill@biomel.UUCP Organization: Habitat Ecology Div., Bedford Inst. of Oceanography Lines: 12 In article <4660@ur-cc.UUCP> lowj_ltd@uhura.cc.rochester.edu (John Alan Low, aka "Travis" Low) writes: > The best solution in terms of speed was: > Make x an integer (start at 10) and increment by 1 each time. Where > x is used in the loop, subsitute x/100. Terminate when x = 30. Just for the record, if you substitute 0.01*x it will run faster. -- Bill Silvert, Habitat Ecology Division. Bedford Institute of Oceanography, Dartmouth, NS, Canada B2Y 4A2 UUCP: ...!{uunet,watmath}!dalcs!biomel!bill Internet: bill%biomel@cs.dal.CA BITNET: bill%biomel%dalcs@dalac