Date: Mon, 10 Feb 1997 17:43:35 -0800 (PST) From: Mark Diekhans <markd@Grizzly.COM> To: gurney_j@resnet.uoregon.edu Cc: mcclure@cs.unm.edu, freebsd-gnats-submit@freefall.freebsd.org, freebsd-current@freebsd.org Subject: Re: misc/229 floating point exception on illegial values.. Message-ID: <199702110143.RAA00810@osprey.grizzly.com> In-Reply-To: <Pine.BSF.3.95q.970210123332.24299F-100000@hydrogen.nike.efn.org> (message from John-Mark Gurney on Mon, 10 Feb 1997 12:45:50 -0800 (PST))
next in thread | previous in thread | raw e-mail | index | archive | help
>I believe that this is what is suppose to happen... you use SIGFPE to >trap these errors and possibly rerun the function after correcting the >problem.... acording to the math(3) man page an exception is suppose to >occure on invalid values... > >so this is really a non-error correct? and this pr should be closed... > >i.e. acos(-2.0) is suppose to generate a SIGFPE else it isn't doing what >math(3) says it will do... As the default behavior, this causes a great amount of pain when porting software to BSD. No other system that I know of works in this manner. Its a royal pain for things like Tcl and other interpreters that want to check errno after calling a math function. Mark
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702110143.RAA00810>