[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: number to hexadecimal and back again?
- From: PA <petite.abeille@...>
- Date: Tue, 15 Feb 2005 11:18:53 +0100
Hello,
This must be rather trivial, but I'm not quite sure how to handle it
using only Lua's core libraries...
I have a number which I convert to its hex representation:
string.format( "%x", 1108340100 )
-> 420fed84
How to I get the number back?
I tried the obvious:
tonumber( "420fed84" )
--> nil
But no dice. What am I doing wrong?
Thanks!
Cheers
--
PA, Onnay Equitursay
http://alt.textdrive.com/