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

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

[Octave-bug-tracker] [bug #34713] str2double() ignores spaces and multip


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #34713] str2double() ignores spaces and multiple commas
Date: Sat, 16 May 2015 18:51:30 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0 Iceweasel/35.0.1

Update of bug #34713 (project octave):

                  Status:               Confirmed => Fixed                  
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #8:

If I read this bug history correctly, the only remaining issue was whether to
treat the comma as a decimal separator depending on locale?

I think we are now pretty sure that we don't want to do that, and took some
steps in the most recent version to ensure even more strongly that LC_NUMERIC
is set to C.

Matlab apparently ignores all commas in numeric literals, e.g.


>> str2double('1,2,3,,,,,,,,,,,,,,,4,,,,,,,,,,,,,')
ans = 1234


and Octave behaves exactly the same way now.

Closing as fixed.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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