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

Search:

Type: Posts; User: justutiz

Search: Search took 0.01 seconds.

  1. Replies
    22
    Views
    6,973

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

    Yes, but dont understand everything. I just need to do a program in few days. This is my first program and I am still learning everything.
  2. Replies
    22
    Views
    6,973

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

    so it is posible to make working with all values, if az i take 0.000000001 then it is not working, so i need to add more 0.00000000000000001 in compare, it is other way?
  3. Replies
    22
    Views
    6,973

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

    so
    if ( fabsf(c - a) < 0.000001 ) is the best and shortest way?
  4. Replies
    22
    Views
    6,973

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

    when add one time its true, but when you do it with cycle it looks something like this

    a = -0.1 + 0.01000000001 and so on
    and then you compare 0 with a it is looks something like this 0 !=...
  5. Replies
    22
    Views
    6,973

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

    Yes, it works, but maybe it is shortes way to compare c-a is 0?
  6. Replies
    22
    Views
    6,973

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

    Yes, but why in my code -0.1 + 0.1 is not 0?
  7. Replies
    22
    Views
    6,973

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

    Im still geting


    1 -1 0
    1.11 -0.9 0
    1.25 -0.8 0
    1.43 -0.7 0
    1.67 -0.6 0
    2 -0.5 0
    2.5 -0.4 0
  8. Replies
    22
    Views
    6,973

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

    but abs want me to use int, my a and c is floats
  9. Replies
    22
    Views
    6,973

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

    Im reading, and Im very new in C++, so I dont find how I can do the folowing that a == c, then a and c is floats.
  10. Replies
    22
    Views
    6,973

    0 isn't 0 in C++ math

    OK, i have a script, which calculate Y=1/(C-A). C is input, A is intetrval [Ap;Ag] with step Az;
    And i have one problem, when c=2, A[-1.5;2.5] with step 0.1, when i want to say that 0 isn't possible...
Results 1 to 10 of 11


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This a Codeguru.com survey!


On-Demand Webinars (sponsored)