Article View: alt.folklore.computers
Article #320Bad Code (was Re: COBOL program)
From: Adnan Yaqub
Date: Thu, 14 Dec 1989 08:22
Date: Thu, 14 Dec 1989 08:22
10 lines
1062 bytes
1062 bytes
Awhile ago when I worked for Allen-Bradley, my friends in the Numerical Control group informed me of some code they had received from a Japanese company they were doing a joint venture with. It seems that to get the absolute value of a number, they did the following: abs_val = sqrt(val*val); -- Adnan Yaqub Star Gate Technologies, 29300 Aurora Rd., Solon, OH, USA, +1 216 349 1860 ...cwjcc!ncoast!sgtech!adnan ...uunet!abvax!sgtech!adnan
Technical Details
Message-ID:
<ADNAN.89Dec14082214@sgtech.UUCP>Path:
mbox-mo1.pugleaf.net!gmdzi!unido!mcsun!uunet!mailrus!usenet.ins.cwru.edu!hal!ncoast!sgtech!adnanReferences:
<18494@bellcore.bellcore.com> <552@enea.se>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!gmdzi!unido!mcsun!uunet!mailrus!usenet.ins.cwru.edu!hal!ncoast!sgtech!adnan From: adnan@sgtech.UUCP (Adnan Yaqub) Newsgroups: alt.folklore.computers Subject: Bad Code (was Re: COBOL program) Message-ID: <ADNAN.89Dec14082214@sgtech.UUCP> Date: 14 Dec 89 08:22:14 GMT References: <18494@bellcore.bellcore.com> <552@enea.se> Sender: adnan@sgtech.UUCP Organization: Star Gate Technologies, Inc. Lines: 10 Posted: Thu Dec 14 09:22:14 1989 In-reply-to: sommar@enea.se's message of 12 Dec 89 22:53:18 GMT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit