lua-users home
lua-l archive

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


> Is there an easy way to get back the hexa string representation of a
> given number value ?

print ( string.format("%.13a", given_number) )

Note: the ".13" format is only necessary on Microsoft compiler, which
by default only displays 5 hexadecimal digits.