Jump to content
  • Advertisement

Daan Niphuis

Member
  • Content count

    2
  • Joined

  • Last visited

Community Reputation

103 Neutral

About Daan Niphuis

  • Rank
    Newbie
  1. Daan Niphuis

    Result of certain floating point operations

    Heh, was so fixed on the IEEE peculiarities, that didn't even consider the natural reasons [/quote] Hmmm, sorry about that. I forgot to mention a != b and are both finite. I did some tests and some equations can indeed be untrue for large values of a and b.
  2. Hello, I have a question regarding the result of IEEE floating point operations. I was wondering if the following statements are always true a == a + 0.0f * (b - a) b == a + 1.0f * (b - a) 1.0f == (a - b) / (a - b) 0.0f == (a - a) / (a - b) where a and b are floating point numbers.
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!