CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8

Thread: 0.999999 = 1

Threaded View

  1. #1
    Join Date
    May 2006
    Location
    England
    Posts
    72

    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
  •  





Click Here to Expand Forum to Full Width

Featured