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

Search:

Type: Posts; User: Petrov

Search: Search took 0.02 seconds.

  1. Replies
    3
    Views
    6,991

    Re: MFC floating point precision problem

    Yes, I meant convert. I use _tstof to convert it to double. So, If I want in my calculator 0.3 + 0.3 to be 0.6, I shouldn't use double or float? If I need precise floating point how to this - string...
  2. Replies
    3
    Views
    6,991

    MFC floating point precision problem

    Hi all,
    I use VS 2005 and my MFC application is a simple calculator. When I have
    double x = 0.3 + 0.4, x is 0.699...8. Also when I cast the string "0.3" to double I get 0.299...8. Can you tell me...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured