bugGNU Octave - Bugs: bug #38359, change result of signbit() to...


bug #38359: change result of signbit() to logical (0,1)

Submitted by:  Michael Godfrey <godfrey>
Submitted on:  Thu 21 Feb 2013 03:40:43 AM UTC  
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Fixed Assigned to:  None
Originator Name:  Michael Godfrey Open/Closed:  Closed
Release:  dev Operating System:  Any

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Thu 21 Feb 2013 04:05:45 PM UTC, comment #2: 

The fix was applied in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/7cfb186592de).  Marking bug as fixed and closing report.

Rik <rik5>
Project Administrator
Thu 21 Feb 2013 12:22:30 PM UTC, comment #1: 

Rik pushed this patch to dev so, unless
anyone objects, this report can be closed.

Michael Godfrey <godfrey>
Project Member
Thu 21 Feb 2013 03:40:43 AM UTC, original submission:  

The current signbit() return non-zero for true following the
C language convention. This, howver, differs from the other
"logical" functions in Octave which return true or false as logical (1,0).  The value of "non-zero" varies from platforms,
and this can lead to obscure failures if a user mistakenly
thinks that signbit() returns a logical (1,0).

This file was wrongly attached to bug report #38291.

Michael Godfrey <godfrey>
Project Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by godfrey (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-02-21 rik5 StatusNone => Fixed
        Open/ClosedOpen => Closed
    2013-02-21 godfrey Attached File- => Added signbit_logical_with_doc.diff, #27488

    Back to the top

    Powered by Savane 3.5