Path: utzoo!utgpu!attcan!uunet!tektronix!tekcae!kurtk From: kurtk@tekcae.CAX.TEK.COM (Kurt Krueger) Newsgroups: comp.lang.fortran Subject: Re: CDC FORTRAN trivia questions Keywords: arithmetic if logical Message-ID: <2183@tekcae.CAX.TEK.COM> Date: 3 Nov 88 20:45:12 GMT References: <1196@helios.ee.lbl.gov> <3616@s.cc.purdue.edu> <7523@ut-emx.UUCP> <3622@s.cc.purdue.edu> <7693@boring.cwi.nl> <3627@s.cc.purdue.edu> Reply-To: kurtk@tekcae.CAX.TEK.COM (Kurt Krueger) Organization: Tektronix, Inc., Beaverton, OR. Lines: 8 Something that may be confusing the issue is that CDC in the FTN and FTN5 compilers always inserted code to make sure that -0 would 'disappear'. In logical statements, this would at times amount to adding a +0 to the logical expression so SOME mathematics would always get done BEFORE a sign test was done. The hardware is such that -0 can NEVER get calculated but is a perfectly legitimate operand. -- I too like the Cybers. Even the new NOS/VE ones - a REAL computer.