octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #37455] tests do not distinguish -0


From: Michael Godfrey
Subject: [Octave-bug-tracker] [bug #37455] tests do not distinguish -0
Date: Sun, 30 Sep 2012 00:46:51 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20100101 Firefox/15.0.1

Follow-up Comment #8, bug #37455 (project octave):

After some more study, it seems to me that implementing
signbit  as in C++ is the best choice.  copybit could
also be implemented at the same time, but seems much less
important.  It appears that signbit could go in lo-mappers.cc
without much trouble.

An alternative would be to modify the current sign
so that sign(-0) returns -1 instead of 0.  This would not
be incompatible with Matlab since it does not use -0, but
might be confusing.

Comments?


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37455>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]