Re: getbyte()

Home Forums General Programming getbyte() Re: getbyte()

  • Topics: 159
  • Replies: 2945
  • Total: 3104
  • ★★★★★

i have no idea why are you trying to convert anything to decimal ? it’s all the same numbers the conversion only makes sense if you want to display the number as DEC or HEX, otherwise it’s the same value (the same memory).

>>> v=64
>>> console (string.format ("ascii=%c", v))

this works and won’t cause problems,however the value needs to represent an ascii character that is printable otherwise you won’t see anything (here is the ascii table