Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #14693
| From | Luca Cerone <luca.cerone@gmail.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: NaN values in c++ |
| Date | 2012-03-02 08:01 -0800 |
| Organization | http://groups.google.com |
| Message-ID | <10810867.7.1330704117801.JavaMail.geo-discussion-forums@vbbdh9> (permalink) |
| References | <24636042.467.1330680257816.JavaMail.geo-discussion-forums@vbkl3> <jiq897$2b4$1@dont-email.me> <jiqb5p$t8b$1@news-rocq.inria.fr> |
> > The main problem with that was and is that implementations such as > > Visual C++ and the GNU toolchain let the user choose optimizations where > > the floating point behavior is decidedly not IEEE 754 conforming. > > I'm sorry guys but I don't follow very well what you're saying. I need a special value to mark positions in my vectors of double. Being an experienced Matlab user, using a NaN seemed the option that made more sense. Why in C++ NaN cause issues? And if NaN is not a feasible solution, how would you recommend to implement a special double value to mark special positions in your vectors? Thanks a lot, and sorry if I couldn't understand at all your arguments. Cheers, Luca
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
NaN values in c++ Luca Cerone <luca.cerone@gmail.com> - 2012-03-02 01:24 -0800
Re: NaN values in c++ "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2012-03-02 11:43 +0100
Re: NaN values in c++ Marc <marc.glisse@gmail.com> - 2012-03-02 11:33 +0000
Re: NaN values in c++ Luca Cerone <luca.cerone@gmail.com> - 2012-03-02 08:01 -0800
Re: NaN values in c++ Paavo Helde <myfirstname@osa.pri.ee> - 2012-03-02 11:14 -0600
Re: NaN values in c++ Miles Bader <miles@gnu.org> - 2012-03-03 07:35 +0900
csiph-web