Ensured that INF, -INF, and NaN are parsed correctly.