Used float(inf) rather than inf