|
-
September 20th, 2006, 03:11 PM
#1
0.999999 = 1
I am reading the book C++ for Dummies to get a clearer picture on some of the more simple C++ concepts and I have come across a paragraph that I can't make sence of.
"C++ can correct for many forms of round-off error. For example, in output, C++ can determine that instead of 0.999999, that the user really meant 1...."
Can anyone demonstrate what this means in a small section of code?
Much appreciated
Tom 
As a quick addition -> Is a double different from a float other than the storage capacity?
Thanks
Last edited by AnotherMuggle; September 20th, 2006 at 03:14 PM.
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
|