-
March 9th, 2009, 03:56 PM
#1
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 where the problem is? Is it a compiler issue? Any help will be usefull.
Thanks in advance and regards,
Peter.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|