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