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

 
 

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

Submitter:  Michael Godfrey <godfrey>
Submitted:  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
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>
Group 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>
Group Member

 

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

Attach Files:
   
   
Comment:
   

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group 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.13-4448.
    Corresponding source code