Add support for infinity, negative infinity, and not-a-number