Autor Thema: DEC_TO_BYTE problem  (Gelesen 6334 mal)

0 Mitglieder und 1 Gast betrachten dieses Thema.

automatizator

  • Gast
DEC_TO_BYTE problem
« am: 30. September 2008, 10:02:06 »
I apologize if writing in English is not acceptable, but I only understand German enough to read the posts...

I think there might be some wrong checking in the various conversion functions, such as DEC_TO_BYTE, DEC_TO_DWORD, DEC_TO_INT and so on, at least in the plaintext version of the library (oscat276.txt). The IF clause

"IF X > 47 AND x < 56 THEN"

appears in them, but if you check the ASCII table you'll see that it should probably read

"IF X > 47 AND x < 58 THEN"

otherwise characters '9' and '8' will not be evaluated.

Offline hugo

  • Global Moderator
  • *****
  • Beiträge: 2 150
    • Profil anzeigen
Re: DEC_TO_BYTE problem
« Antwort #1 am: 30. September 2008, 10:30:10 »
we will check immediately and correct in version 277 if necessary

thx for the input

ps dont worry about english, its no problem for us

Offline hugo

  • Global Moderator
  • *****
  • Beiträge: 2 150
    • Profil anzeigen
Re: DEC_TO_BYTE problem
« Antwort #2 am: 30. September 2008, 10:49:01 »
thanks very much for the input,
the mentioned functions had a serious problem and will be corrected with the next release 2.77

Jicin

  • Gast
Re: DEC_TO_BYTE problem
« Antwort #3 am: 02. Oktober 2008, 17:20:14 »
Hallo,

das gleiche Problem ist auch in der Funktion FLOAT_TO_REAL.
Auch hier wird leider immer die 8 und die 9 ignoriert.

Offline peewit

  • Moderator
  • *****
  • Beiträge: 2 378
    • Profil anzeigen
Re: DEC_TO_BYTE problem
« Antwort #4 am: 02. Oktober 2008, 19:39:34 »
Ja hier ist leider auch der gleiche Fehler mit drinnen
wird auch mit der release 2.77 behoben

danke..