[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49192] dec2bin function does not behave the s
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #49192] dec2bin function does not behave the same as Matlab |
Date: |
Thu, 29 Sep 2016 05:57:33 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko |
Follow-up Comment #4, bug #49192 (project octave):
Matlab 2010b:
>> dec2bin (5, 0)
ans =
101
>> dec2bin (0, 3)
ans =
000
>> dec2bin (0, 1)
ans =
0
>> dec2bin (0, 0)
ans =
Empty string: 1-by-0
moreover
>> dec2base (0,2,0)
ans =
0
so dec2bin(x,y) = dec2base (x,2,y) unless x=0 & y=0
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49192>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/