Fix nan output in the printf family.