Date: Wed, 17 Jan 2001 14:04:32 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: Weird results of log( -1.0 ) with libm.a and without libm.a In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 17 Jan 2001, Damian Yerrick wrote: > >However, I can compare the result directly with NaN and Inf > > You can't just do if(x == 0./0.) Careful: this might misfire in some cases, depending on the FPU setup (in the standard DJGPP setup, it's okay). It could, for example, crash your program.