From: "Tanes Sriviroolchai" Newsgroups: comp.os.msdos.djgpp References: <3a5e8f24$1 AT rpc1284 DOT daytonoh DOT ncr DOT com> <6480-Fri12Jan2001134540+0200-eliz AT is DOT elta DOT co DOT il> Subject: Re: Weird results of log( -1.0 ) with libm.a and without libm.a Date: Mon, 15 Jan 2001 10:00:49 +0700 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Original-NNTP-Posting-Host: 192.127.136.173 Message-ID: <3a62680d@rpc1284.daytonoh.ncr.com> X-Original-Trace: 14 Jan 2001 22:01:33 -0500, 192.127.136.173 NNTP-Posting-Host: ncrnews.daytonoh.ncr.com X-Trace: 15 Jan 2001 13:49:11 -0500, ncrnews.daytonoh.ncr.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Eli Zaretskii" wrote in message news:6480-Fri12Jan2001134540+0200-eliz AT is DOT elta DOT co DOT il... > > > You should be able to look at the bit pattern of the result and > compare it with NaN and Inf, if you don't believe isnan. No, I'm ok with all behavior of log() and isnan() in DJGPP. The only (small) problem is isnan() is not available in libc.a. However, I can compare the result directly with NaN and Inf so it should not be a problem at all. Thank you. Regards, Tanes Sriviroolchai