Implicit conversion from float INF to int loses precision