lua-users home
lua-l archive

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



On 22-Dec-05, at 11:31 AM, Todor Totev wrote:

Hello,
The only thing I care right now is the possibility to enter hexadecimal
numbers in my scripts and give them as parameters to C functions.

Lua 5.0.2  Copyright (C) 1994-2003 Tecgraf, PUC-Rio
>
> function X(str) return tonumber(str, 16) end
>
> print(X"2A")
42