home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os2 / programm / 4739 < prev    next >
Encoding:
Text File  |  1992-09-04  |  1.4 KB  |  42 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!gatech!destroyer!fmsrl7!lynx!nmsu.edu!opus!ghenniga
  3. From: ghenniga@NMSU.Edu
  4. Subject: Re: Division by 0 crashes OS2/2.0
  5. In-Reply-To: bai@msiadmin.cit.cornell.edu's message of Thu, 3 Sep 1992 13:13:06 GMT
  6. Message-ID: <GHENNIGA.92Sep4094517@ampere.ampere>
  7. Sender: usenet@nmsu.edu
  8. Reply-To: ghenniga@NMSU.Edu
  9. Organization: New Mexico State University - Electromagnetics Group
  10. References: <1992Sep2.163508.17347@tc.cornell.edu> <21529@optima.cs.arizona.edu>
  11.     <92Sep03.032755.21494@acs.ucalgary.ca>
  12.     <1992Sep3.131306.13751@tc.cornell.edu>
  13. Date: Fri, 4 Sep 1992 16:45:17 GMT
  14. Lines: 26
  15.  
  16.  
  17. I tried a simple program to test this out:
  18.  
  19.     PROGRAM TEST
  20.     X1 = 10.0
  21.     X2 = 2.0
  22.     Y1 = X1-5.0*X2
  23.     X3 = X1/Y1
  24.     STOP
  25.     END
  26. I ran it and it gave me the following on the command line:
  27.  
  28.     run-time error M6103: MATH
  29. - floating-point error: divide by 0
  30.  
  31. This is with MS Fortran 5.1 on a 486/33...So it appears that the problem is
  32. either specific to your hardware or MS Fortran 5.0. Again, this was with the
  33. protected mode libraries for OS/2 1.3 running under OS/2 2.0.
  34.  
  35. Gary Hennigan
  36. +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=++=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
  37. += PhD Student, Computational Electromagnetics  | Member: Utilitarian  +=
  38. += New Mexico State University                  | .signature club      +=
  39. += email: ghenniga@NMSU.Edu                                            +=
  40.  
  41.  
  42.