home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os2 / programm / 4734 < prev    next >
Encoding:
Internet Message Format  |  1992-09-04  |  1.3 KB

  1. Path: sparky!uunet!cs.utexas.edu!rutgers!psuvax1!psuvm!hxc6
  2. From: HXC6@psuvm.psu.edu (H. Choe)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Re: Division by 0 crashes OS2/2.0
  5. Message-ID: <92248.101602HXC6@psuvm.psu.edu>
  6. Date: 4 Sep 92 14:16:02 GMT
  7. References: <21529@optima.cs.arizona.edu>
  8.  <92Sep03.032755.21494@acs.ucalgary.ca> <1992Sep3.131306.13751@tc.cornell.edu>
  9.  <92Sep04.024410.14613@acs.ucalgary.ca>
  10. Organization: Penn State University
  11. Lines: 13
  12.  
  13. Luc B. suggests that he got 1.0, but I could not duplicate the result
  14. using Watcom under OS/2 (I don't use DOS).  When I ran the original
  15. program, I did not get any error message.  However, when I tried to USE
  16. THE VALUE OF "z" (for example, writing the value on the screen), I got
  17. a nice error message "*ERR* KO-01 floating point divide by zero".
  18. Note that the original program does not use the calculated "z".
  19. Thus, I still believe I can use WATCOM (of course, level-B patched)
  20. for serious numerical work.  My hardware is SWAN 486-50DX2 local bus
  21. system.   Oh, if one suspects a hardware-related problem, I would suggest
  22. that he may use f2c to check whether he can duplicate the problem.
  23. BTW, f2c with GCC/2 2.2 is very nice and fast in floating point calc.
  24. Although it is a little slower than WATCOM, it is not slower than
  25. f2c with GCC/EMX in my experience (GCC/2 2.1 was a bit slower).
  26.