CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Paul McKenzie

Search: Search took 2.88 seconds.

  1. Replies
    22
    Views
    17,185

    Re: 0 isn't 0 in C++ math

    Well, this code will not work:

    for (float a = ap; a <= ag; a += az)
    Never use floats or doubles as loop counters. Never.

    The reason is that you cannot guarantee how many times that loop...
  2. Replies
    22
    Views
    17,185

    Re: 0 isn't 0 in C++ math

    Before you ask more questions, please read this:

    http://www.parashift.com/c++-faq-lite/newbie.html#faq-29.16
    http://www.parashift.com/c++-faq-lite/newbie.html#faq-29.17...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured