🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #6189

Re: Floating point errors

#6189
From: Gil Nardo
Date: Sat, 26 Dec 1992 18:10
18 lines
1031 bytes
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 = *!
Technical Details
Message-ID: <4914@wet.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!wupost!csus.edu!netcom.com!netcomsv!wet!mcs
References: <1992Dec25.151830.23685@mnemosyne.cs.du.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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