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