added vectorized float comparison