Re: getbyte()

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

#3005
atom
Keymaster
    • 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).

    [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/)

    Ctrlr