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

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

[Octave-bug-tracker] [bug #51283] function min/max inconsistent handling


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #51283] function min/max inconsistent handling of -0
Date: Wed, 21 Jun 2017 08:43:34 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #1, bug #51283 (project octave):

Could someone check what Matlab does?  It doesn't display the '-' for negative
zero, but it can produce and preserve it.  You can check for it by doing some
other operation like x = -0; 1/x ==> -Inf.

So, for whoever wants to check this out, try some things like this:


x = max ([-0, 0])
1/x



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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