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