home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!waikato.ac.nz!aukuni.ac.nz!ecmtwhk
- Newsgroups: comp.lang.fortran
- Subject: Re: how to quit on an NaN result?
- Message-ID: <1992Aug16.221125.19419@ccu1.aukuni.ac.nz>
- From: ecmtwhk@ccu1.aukuni.ac.nz (Thomas Koenig)
- Date: Sun, 16 Aug 1992 22:11:25 GMT
- References: <1992Aug16.200837.14024@samba.oit.unc.edu>
- Organization: University of Auckland, New Zealand.
- Lines: 13
-
- Bruce.Scott@bbs.oit.unc.edu (Bruce Scott) writes:
-
- >How can I check forNaN's and quit when one arises.
-
- NaN's are supposed to fail every test, so
-
- IF ((.NOT.AVAR.GE.0.) .AND. (.NOT.AVAR.LT.0.)) STOP
-
- should do the trick.
- --
- Thomas Koenig, ecmtwhk@ccu1.aukuni.ac.nz, ib09@rz.uni-karlsruhe.de
- The joy of engineering is to find a straight line on a double logarithmic
- diagram.
-