Using proper float comparison everywhere