bugGNU Octave - Bugs: bug #54434, str2num discrepancy for...

 
 

bug #54434: str2num discrepancy for non-numerical input

Submitter:  Arnaud Delorme <arnodelorme>
Submitted:  Thu 02 Aug 2018 04:35:07 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.4.0 Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 02 Aug 2018 05:23:06 PM UTC, comment #1: 

The error is intended to be caught by the eval function that you are stopped on.

You appear to have debug_on_error set to true in your session. Disable that and you will get the correct result. Or type 'dbcont' to allow the interpreter to continue normally and you will get the correct result.

Mike Miller <mtmiller>
Group Member
Thu 02 Aug 2018 04:35:07 PM UTC, original submission:  

Assuming 'de' is not a variable or function.
Under Matlab 2018a

str2num('de')
ans =
[]

Under Octave 4.4 (--traditional)

str2num('de')
stopped in /usr/local/Cellar/octave/4.4.0_2/share/octave/4.4.0/m/strings/str2num.m at line 62
62:   eval (s, "m = []; state = false;");

Arnaud Delorme <arnodelorme>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by arnodelorme (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-08-02 mtmiller StatusNone Invalid / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code