# DEC\_TO\_BYTE problem

**URL:** <https://oscat.discourse.group/t/dec-to-byte-problem/401>\
**Category:** Bestehende Module / Existing Modules\
**Created:** [30. September 2008 um 08:02 UTC](https://oscat.discourse.group/t/dec-to-byte-problem/401 "2008-09-30T08:02:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/oscat/original/1X/2efdfb9c592ff9a666c94dff124ee84fa863dae5.jpeg) [@system](https://oscat.discourse.group/u/system)\
**Post date:** [30. September 2008 um 08:02 UTC](https://oscat.discourse.group/t/dec-to-byte-problem/401/1 "2008-09-30T08:02:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![hugo](https://yyz2.discourse-cdn.com/free1/user_avatar/oscat.discourse.group/hugo/32/133_2.png) [@hugo](https://oscat.discourse.group/u/hugo)\
**Post date:** [30. September 2008 um 08:30 UTC](https://oscat.discourse.group/t/dec-to-byte-problem/401/2 "2008-09-30T08:30:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![hugo](https://yyz2.discourse-cdn.com/free1/user_avatar/oscat.discourse.group/hugo/32/133_2.png) [@hugo](https://oscat.discourse.group/u/hugo)\
**Post date:** [30. September 2008 um 08:49 UTC](https://oscat.discourse.group/t/dec-to-byte-problem/401/3 "2008-09-30T08:49:01Z")

</div>

thanks very much for the input,  
the mentioned functions had a serious problem and will be corrected with the next release 2.77

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/oscat/original/1X/2efdfb9c592ff9a666c94dff124ee84fa863dae5.jpeg) [@system](https://oscat.discourse.group/u/system)\
**Post date:** [2. Oktober 2008 um 15:20 UTC](https://oscat.discourse.group/t/dec-to-byte-problem/401/4 "2008-10-02T15:20:14Z")

</div>

Hallo,

das gleiche Problem ist auch in der Funktion FLOAT\_TO\_REAL.  
Auch hier wird leider immer die 8 und die 9 ignoriert.

---

<div class="post-metadata">

**Author:** ![peewit](https://avatars.discourse-cdn.com/v4/letter/p/ecc23a/32.png) [@peewit](https://oscat.discourse.group/u/peewit)\
**Post date:** [2. Oktober 2008 um 17:39 UTC](https://oscat.discourse.group/t/dec-to-byte-problem/401/5 "2008-10-02T17:39:34Z")

</div>

Ja hier ist leider auch der gleiche Fehler mit drinnen  
wird auch mit der release 2.77 behoben

danke..
