[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: number to hexadecimal and back again?
- From: PA <petite.abeille@...>
- Date: Tue, 15 Feb 2005 11:18:53 +0100
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 )
How to I get the number back?
I tried the obvious:
tonumber( "420fed84" )
But no dice. What am I doing wrong?
PA, Onnay Equitursay