Use custom operators for float comparison

Cosmetics that silences gcc-4.8 warnings.