Value of float variable

Discussion in 'C++' started by Cristian Tota, Aug 9, 2004.

  1. Hi,

    I use Visual C++ 6.0. While in debug mode I watch a float variable in the
    watch window. It has the value

    -1.#IND0

    What does this mean? I haven't found anything about this on the net.

    Thanks,
    Cristian
    Cristian Tota, Aug 9, 2004
    #1
    1. Advertising

  2. Cristian Tota wrote:
    >
    > Hi,
    >
    > I use Visual C++ 6.0. While in debug mode I watch a float variable in the
    > watch window. It has the value
    >
    > -1.#IND0
    >
    > What does this mean? I haven't found anything about this on the net.
    >


    It is the VC++ way of outputting 'quiet Nan' or 'Indefinite'.
    NaN stands for: Not a number


    --
    Karl Heinz Buchegger
    Karl Heinz Buchegger, Aug 9, 2004
    #2
    1. Advertising

  3. Thanks!


    "Karl Heinz Buchegger" <> wrote in message
    news:...
    > Cristian Tota wrote:
    > >
    > > Hi,
    > >
    > > I use Visual C++ 6.0. While in debug mode I watch a float variable in

    the
    > > watch window. It has the value
    > >
    > > -1.#IND0
    > >
    > > What does this mean? I haven't found anything about this on the net.
    > >

    >
    > It is the VC++ way of outputting 'quiet Nan' or 'Indefinite'.
    > NaN stands for: Not a number
    >
    >
    > --
    > Karl Heinz Buchegger
    >
    Cristian Tota, Aug 9, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page