On Thu, 8 Jan 2004 10:44:13, Luc Le Blanc writes:
>Actually, how can I set a double to NaN?

There are several different NaN'a.  The compiler should be able
generate some of them for you.  e.g.
  double x ;
  x =  1.0 / 0.0;  /* positive infinity */
  x = -1.0 / 0.0;  /* negative infinity */
  x =  0.0 / 0.0;  /* indeterminate */
  x = -0.0 / 0.0;  /* negative indeterminate */


Ron Nicholson
HotPaw Productions
 http://www.hotpaw.com/rhn/palm 

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to