lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, Mar 22, 2007 at 08:29:00PM -0400, L-28C wrote:
> PS: The hex number is in string (character) format. Sorry about that.

string.sub() to get rid of the leading "0x"?

> >I got a question. Given a hexadecimal number (ie. 0x13), how can I 
> >convert that to the string "13"? I use print() and it gives me a random 
> >ASCII character.