bugGNU Octave - Bugs: bug #48184, num2hex silently discards...

 
 

bug #48184: num2hex silently discards imaginary part: should raise error

Submitted by:  Colin Macdonald <cbm>
Submitted on:  Wed 08 Jun 2016 07:02:38 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 08 Jun 2016 08:56:41 PM UTC, comment #3:

Fixed on the default branch with an error message and validation tests:

http://hg.savannah.gnu.org/hgweb/octave/rev/6b4f6339df91

Mike Miller <mtmiller>
Project Administrator
Wed 08 Jun 2016 08:11:01 PM UTC, comment #2:

Matlab raises an error, "input must be real" or something like that.

Colin Macdonald <cbm>
Wed 08 Jun 2016 07:17:04 PM UTC, comment #1:

When you say should raise an error, do you mean that Matlab raises an error about the input being complex?

Rik <rik5>
Project Administrator
Wed 08 Jun 2016 07:02:38 PM UTC, original submission:

The latter example should raise an error.

Colin Macdonald <cbm>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by cbm (Submitted the item)
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 08 Jun 2016 08:56:41 PM UTCmtmillerStatusNeed Info=>Fixed
      Open/ClosedOpen=>Closed
    Wed 08 Jun 2016 07:17:04 PM UTCrik5StatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1