Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #14680
| From | Luca Cerone <luca.cerone@gmail.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | NaN values in c++ |
| Date | 2012-03-02 01:24 -0800 |
| Organization | http://groups.google.com |
| Message-ID | <24636042.467.1330680257816.JavaMail.geo-discussion-forums@vbkl3> (permalink) |
Dear all, is there in c++ an analogous of Matlab NaN values? In Matlab NaN is a special value that you can assign to double variables and use it for example to mark special position in vectors (for example imagine a polygon made of two disjoint regions, you can separate the two regions using NaN), it is the value returned when making a 0/0 division and so on Is there any such special value in c++? Googling I think there is and that I have to use a <limit> library, but I couldn't really find more information, especially concerning the efficiency of such a library. Thanks a lot in advance for your help in advance, Luca
Back to comp.lang.c++ | Previous | Next — 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