home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / msdos / programm / 11626 < prev    next >
Encoding:
Internet Message Format  |  1992-12-26  |  1003 b 

  1. Path: sparky!uunet!cs.utexas.edu!wupost!csus.edu!netcom.com!netcomsv!wet!mcs
  2. From: mcs@wet.UUCP (Gil Nardo)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Re: Floating point errors
  5. Message-ID: <4914@wet.UUCP>
  6. Date: 26 Dec 92 18:10:43 GMT
  7. References: <1992Dec25.151830.23685@mnemosyne.cs.du.edu>
  8. Organization: Wetware Diversions, San Francisco
  9. Lines: 18
  10.  
  11. slindsay@nyx.cs.du.edu (Steve Lindsay) writes:
  12. > How can you catch floating point errors in a program
  13. > so you could just break from that function rather than 
  14. > the whole program crashing?
  15. > I am using DOS VGA and Borland C++ 3.1
  16.  
  17. You can catch floating point errors from math routines by
  18. modifying or redefining the matherr() function and including
  19. it as part of your source file(s).  matherr.c is located
  20. in the lib subdirectory or the crtl\math subdirectory.
  21. -- 
  22. Gil Nardo                  | mcs@wet.com
  23. Migrant Computing Services | (415)664-1032
  24. 1032 Irving Street, #435   |-----------------
  25. San Francisco, 94122       | Supernova = *!
  26.