Remove needless floating point comparison