www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/02/01/18:22:24

From: "Papp Istvan" <D-PAPP AT nov DOT mht DOT bme DOT hu>
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Date: Wed, 1 Feb 1995 21:06:14 GMT+0100
Subject: How to use Inf and NaN?

Hi!
I have a 486DX2-50 machine with MS DOS 6.22, and I use gcc 2.60.
I'd like to use Inf and NaN with djgpp as a regular number. For 
example:
  x= log(0.0)
results in floating point exception, but I would be very happy
if -Inf was stored into x.
Another example:
  x= 0.0 / 0.0
also generates floating point example, but I need NaN in x.

Is there any solution for this problem?

Thanx in advance,
Pisti


---------------------------------------
Istvan Papp       d-papp AT nov DOT mht DOT bme DOT hu

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019