lua-users home
lua-l archive

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


At present Lua has `tonumber (e [, base])` but only `tostring (e)`.
For symmetry, `tostring (e [, base])` would be nice to have:

    F5 = 2^32+1
    p = 641 
    q = F5/p
    print (tostring(q,2)).."₂" --> 11001100011101110000001₂

Dirk