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

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

[Octave-bug-tracker] [bug #36536] str2double is case-sensitive


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #36536] str2double is case-sensitive
Date: Thu, 24 May 2012 21:57:18 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6

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

                 Summary: str2double is case-sensitive
                 Project: GNU Octave
            Submitted by: philipnienhuis
            Submitted on: Thu May 24 23:57:17 2012
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Philip Nienhuis
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: Any

    _______________________________________________________

Details:

octave-3.6.1:1> str2double ('Inf')
ans = Inf
octave-3.6.1:2> str2double ('inf')
ans = NaN
octave-3.6.1:3> str2double ('NaN')
ans = NaN
octave-3.6.1:4> str2double ('Naa')
ans = NaN
octave-3.6.1:5> str2num ('Inf')
ans = Inf
octave-3.6.1:6> str2num ('inf')
ans = Inf

Obviously str2double returns NaN for any read "error".
But that it is case-sensitive while str2num is not, is inconsistent.

I don't have ML at hand at the moment, but IIRC in ML both str2num and
str2double are case-INsensitive. Can someone check, please?





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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