lua-users home
lua-l archive

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


> Those hex values represent urls as returned by :

Try this:

require"bc"

function url2bc(url)
	local x=bc.number(0)
	for i=1,#url do
		x=16*x+url:byte(i)
	end
	return x
end

print(url2bc("http://www.lua.org/";))