Eliminating abs() from float comparison