
29 Mar
2010
29 Mar
'10
3:14 p.m.
On 29 March 2010 02:32, Chad Nelson <chad.thecomfychair@gmail.com> wrote:
An interval consists of two points. Setting the lower point to Not-a-Number would work exactly the same as setting it to -infinity. Same with the higher point and +infinity. It wouldn't make any sense to set the lower point to +infinity, or the higher one to -infinity, so the sign doesn't convey any useful information in that case.
No, because -Inf < finite and finite < Inf will always return true, whereas NaN < finite and finite < NaN will either throw an exception or, if a quiet NaN acting like IEEE 754, return false.