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

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

[Octave-bug-tracker] [bug #53477] base2dec.m : missing a warning, error.


From: Dildar Sk
Subject: [Octave-bug-tracker] [bug #53477] base2dec.m : missing a warning, error.
Date: Mon, 26 Mar 2018 09:50:56 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?53477>

                 Summary: base2dec.m : missing a warning, error.
                 Project: GNU Octave
            Submitted by: hodor123456
            Submitted on: Mon 26 Mar 2018 01:50:55 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Missed Error or Warning
                  Status: None
             Assigned to: None
         Originator Name: Dildar Sk
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

In MATLAB,


>> base2dec('11',NaN)
Error using base2dec (line 24)
The base must be an integer value between 2 and 36.


But in Octave,


>> base2dec('11',NaN)
ans =  NaN


NaN is not-a-number so definitely it doesn't lie within 2-36 range.
So, Octave also should throw error like MATLAB.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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