home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / lang / cplus / 11713 < prev    next >
Encoding:
Text File  |  1992-07-29  |  940 b   |  25 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!mcsun!sun4nl!alchemy!prisma!ger
  3. From: ger@cv.ruu.nl (Ger Timmens)
  4. Subject: NaN - magic value
  5. Sender: usenet@cv.ruu.nl (Usenet Network)
  6. Message-ID: <1992Jul29.084722.6906@cv.ruu.nl>
  7. Date: Wed, 29 Jul 1992 08:47:22 GMT
  8. Nntp-Posting-Host: triton.cv.ruu.nl
  9. Organization: University of Utrecht, 3D Computer Vision Research Group
  10. Lines: 13
  11.  
  12. I want to assign a magic value to certain double variables;
  13. Currently I return DBL_MAX, as defined in <float.h>.
  14.  
  15. Is it possible to assign the value NaN, to double variables ?
  16. (NaN = NotANumber, e.g. dDouble = 1.0 / 0.0 ==> dDouble == NaN)
  17.  
  18. Thanks in advance,
  19.  
  20. -- 
  21. Ger Timmens (ger@cv.ruu.nl) 3DCV Research Group, Utrecht, The Netherlands
  22. Tel.: +31 -30 50 67 11;      Room: F.01.7.03;      Fax.: +31 -30 51 33 99
  23. .....I'd rather hear Chet miss a note, than Wynton make a thousand......
  24. Chet - Miles - Kenny - Lee - Arturo - Fats - Wynton - Art - Louis - Bix -
  25.