Test if two floats are nearly equal