Post Reply 
Programming error on the physical calculator only
08-31-2014, 04:03 PM (This post was last modified: 08-31-2014 04:05 PM by jebem.)
Post: #11
RE: Programming error on the physical calculator only
(08-31-2014 03:47 PM)gabrieljcs Wrote:  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;

Achei!
I believe I found the problem.
Maybe you are using the comma "," as the decimal separator...?

I ask this because if I choose "Agrupamento de dígit" = 123456,789 from the Home Settings, I get your Prime behavior.
And this is not a problem with the Prime Language settings, it will happen in English as well.

This looks like a "bug" to me, but maybe Tim can give some extra information here.

Jose Mesquita
RadioMuseum.org member

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 - jebem - 08-31-2014 04:03 PM



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