Home › Forums › General › Programming › getbyte() › Re: getbyte()
July 23, 2011 at 4:34 pm
#3005
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).
[code:logyijrq]
>>> v=64
>>> console (string.format ("ascii=%c", v))
ascii=@
[/code:logyijrq]
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 http://www.asciitable.com/)