Comparison with NaN

Michael Goffioul michael.goffioul at gmail.com
Sun May 10 15:43:44 CDT 2009


Hi,

After running the test suite, I get a couple of errors. All of these
seem to be related to comparing/sorting with NaN. For instance:

assert (sort ([NaN, 1, -1, 2, Inf], 2),[-1, 1, 2, Inf, NaN]) expected
    -1     1     2   Inf   NaN
but got
   NaN    -1     1     2   Inf

Can anybody tell me what is the expected behavior?

Michael.


More information about the Octave-maintainers mailing list