http://bhudson.livejournal.com/ ([identity profile] bhudson.livejournal.com) wrote in [personal profile] meganursula 2008-09-11 09:04 pm (UTC)

Oh, and Eps implies you're comparing doubles wrong. Read this article, and love it:

http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm

Then, yank out the AlmostEqual2sComplement function, rename it, and use that in all your comparisons.

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting