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

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

[Octave-bug-tracker] [bug #45170] Unexpected results


From: anonymous
Subject: [Octave-bug-tracker] [bug #45170] Unexpected results
Date: Sat, 23 May 2015 08:17:12 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0

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

                 Summary: Unexpected results
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Sat 23 May 2015 08:17:11 AM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Inaccurate Result
                  Status: None
             Assigned to: None
         Originator Name: CK Raju
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.2
        Operating System: GNU/Linux

    _______________________________________________________

Details:

# case 1 === this code snippet ALWAYS works
binstring = dec2bin(linenumber);                                [a,b] = 
size(binstring);
   while (b<15),
         pcode = horzcat("0", binstring);
         binstring = pcode;
         b = b + 1;
   end;
pcode=binstring;        # Why should this be ESSENTIAL 
fputs(flabel, horzcat(plabel,":",pcode,"\n"));

# case 2 === this code snippet doesn't work ALWAYS
binstring = dec2bin(linenumber);                                [a,b] = 
size(binstring);
   while (b<15),
        pcode = horzcat("0", binstring);
        binstring = pcode;
         b = b + 1;
   end;
fputs(flabel, horzcat(plabel,":",pcode,"\n"));




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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