The D language has the best floating point equality testing routines I have ever seen.