Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Dec 1994 13:05:39 -0800
From:      Mark Diekhans <markd@grizzly.com>
To:        freebsd-questions@freebsd.org
Subject:   Behavior of sqrt on errors.
Message-ID:  <199412272105.NAA07322@Grizzly.COM>

next in thread | raw e-mail | index | archive | help

On FreeBSD,

   sqrt (-3.0);

generates a SIGFPE.  On all other systems I have encountered, it calls
matherr with a DOMAIN error.  Can anyone more knowledgeable about the 
ANSI standard comment if this correct ANSI behavior or a bug?

Thanks,
Mark



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199412272105.NAA07322>