Why going from nan to max float?