Could we have an example of how an NaN works in C++? I don't recall
using NaN in any program or seeing it used in class...
On Dec 2, 4:53 pm, Jay McCarthy <jay.mccar...@gmail.com> wrote:
> It is not a number. You can just write "NAN" in your program or do
> something like "sqrt(-1)" to get it
>
> On Fri, Dec 2, 2011 at 4:41 PM, Chris Wasden
> <christopher.was...@gmail.com>wrote:
>
> > Could we have an example of how an NaN works in C++? I don't recall
> > using NaN in any program or seeing it used in class...
>
> --
> Jay McCarthy <j...@cs.byu.edu>
> Assistant Professor / Brigham Young Universityhttp://faculty.cs.byu.edu/~jay