Improve floating point comparison method.