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: Fri, 25 May 2012 12:02:00 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6

Follow-up Comment #1, bug #36536 (project octave):

ML r2009a has this to say:

>> str2double ('inf')
ans =
   Inf
>> str2double ('iNF')
ans =
   Inf
>> str2double ('Inf')
ans =
   Inf
>> str2double ('INF')
ans =
   Inf

>> str2num ('inf')
ans =
   Inf
>> str2num ('iNF')
ans =
     []
>> str2num ('Inf')
ans =
   Inf
>> str2num ('inF')
ans =
     []
>> str2num ('InF')
ans =
     []
>>  str2num ('INF')
ans =
     []

so it seems the situation is a bit reversed compared to Octave: str2double is
case-INsensitive while str2num is.

I'd vote for making at least str2double ML-compatible.

    _______________________________________________________

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]