Make template comparison functions handle floats