Fixed float comparison warnings #270