[hacc] Recognize nan and inf.