Boost logo

Boost :

From: Gottlob Frege (gottlobfrege_at_[hidden])
Date: 2007-05-18 16:58:42


On 5/18/07, Andrew Koenig <ark-mlist_at_[hidden]> wrote:
> > Does
>
> The IEEE floating-point standard says:
>
> > 0. == 0.
>
> Yes.
>
> > NaN == NaN
>
> No. NaN compares unordered with everything.
>
> > Inf == Inf.
>
> Yes.

It's sad that Inf == Inf, because most infinities (an infinite number
of them :-) are not equal. On the other hand, I'd like to be able to
check for Inf (and NaN) so we need to compare them somehow.

Tony


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk