Reworked floating point tests for equality