Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!mailrus!cwjcc!ukma!rutgers!cs.utexas.edu!ut-emx!cccm001 From: cccm001@ut-emx.UUCP (Tom Linsley) Newsgroups: comp.lang.fortran Subject: Re: CDC FORTRAN trivia questions Summary: Truth values - Dave's right Keywords: arithmetic if logical Message-ID: <7556@ut-emx.UUCP> Date: 1 Nov 88 21:21:37 GMT References: <1196@helios.ee.lbl.gov> <3616@s.cc.purdue.edu> <7523@ut-emx.UUCP> <3622@s.cc.purdue.edu> Organization: The University of Texas at Austin, Austin, Texas Lines: 25 By golly, Dave's right, the "logical truth" is even curiouser than I had thought. I ran a little "assign and print" program this afternoon using five of the Fortran compilers on our Dual Cyber 170/750; herewith the results: RUN TRUE 77777777777777777777 (-0) FALSE 00000000000000000000 (+0) MNF 4.6 TRUE 77777777777777777776 (-1) FALSE 00000000000000000001 (+1) MNF 5.4 TRUE 77777777777777777776 (-1) FALSE 00000000000000000000 (+0) FTN 4.8 TRUE 77777777777777777776 (-1) FALSE 00000000000000000000 (+0) FTN 5.1 TRUE 77777777777777777776 (-1) FALSE 00000000000000000000 (+0) I sure hope none of Mike Helms' old CDC code relies on anything but just plain "true" or "false". - TL -- Tom Linsley University of Texas Computation Center cccm001@emx.cc.utexas.edu