Handle +inf/+inf correctly.