octave-maintainers
[Top][All Lists]
Advanced

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

Re: bin2dec behavior different from Matlab?


From: Jordi Gutiérrez Hermoso
Subject: Re: bin2dec behavior different from Matlab?
Date: Fri, 16 Mar 2012 07:53:11 -0400

On 16 March 2012 01:30, Daniel J Sebald <address@hidden> wrote:
> This change happened with changeset 11172:7e8ce65f73cf shown here
>
> http://hg.savannah.gnu.org/hgweb/octave/rev/7e8ce65f73cf
>
> which overhauled the string number conversion routines.  (Maybe the intent
> was to move white space removal inside base2dec.)
>
> In my opinion tossing away white space makes better sense than treating
> white space as zeros.
>
> I also suggest adding a test to the file.  There currently are several, but
> none that test the behavior of white space.  E.g.,
>
> %!assert (bin2dec ("1 0 1"), 5)

This seems like a clear unintentional regression. Can you prepare a changeset?

- Jordi G. H.


reply via email to

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