fixed treating INF or inf as an infinite float