[Numpy-discussion] What is the logical value of nan?
Wed Mar 11 10:00:27 CDT 2009
--- On Wed, 3/11/09, Bruce Southey <firstname.lastname@example.org> wrote:
> From: Bruce Southey <email@example.com>
> Subject: Re: [Numpy-discussion] What is the logical value of nan?
> To: "Discussion of Numerical Python" <firstname.lastname@example.org>
> Date: Wednesday, March 11, 2009, 10:24 AM
> This is one link that shows the different representation of
> numbers in IEEE 754:
> It is a little clearer than Wikipedia:
Thanks. Useful sites.
> Numpy's nan/NaN/NAN, inf/Inf/PINF, and NINF are not
> nothing so not zero.
> Also, I think that conversion to an integer should be an
> error for all of these because there is no equivalent
> representation of these floating
> point numbers as integers and I think that using zero for
> NaN is wrong.
> Now for the other two special representations, I would
> presume that
> Numpy's PZERO (positive zero) and NZERO (negative zero)
> are treated as
> nothing. Conversion to integer for these should be zero.
Yet another +1.
-- Lou Pecora, my views are my own.
More information about the Numpy-discussion