Post Reply 
Programming error on the physical calculator only
08-31-2014, 03:47 PM (This post was last modified: 08-31-2014 03:49 PM by gabrieljcs.)
Post: #10
RE: Programming error on the physical calculator only
Ok, I renamed the variables but still get the odd behavior. I'm pretty sure I'm missing something really dumb, because this doesn't make sense.

Code:
EXPORT TamanhoMantissa()
BEGIN
  LOCAL SIZE, AUX0, AUX1;

  SIZE := 20;

  REPEAT
    SIZE := SIZE + 1;
    AUX0 := 1/2^SIZE;
    AUX0 := AUX0 + 1;
    AUX1 := AUX0 - 1;
  UNTIL AUX1 == 0;
  
  MsgBox("O tamanho da mantissa é de " + SIZE + " bits");

  RETURN SIZE;

END;


Attached File(s) Thumbnail(s)
       
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Programming error on the physical calculator only - gabrieljcs - 08-31-2014 03:47 PM



User(s) browsing this thread: 2 Guest(s)