lua-users home
lua-l archive

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

Hi everyone. I just found out about Lua, and I'm really impressed.
Clean design, enought syntatic sugar, I just wish curly brackets were
optional, like the semicomma, for us C/Java addicts.

Anyway, I'm trying to use it for a small string manipulation script,
but I couldn't figure out how to use the format(...) function for
formatting 'long' numbers. eg:

print(a) -- 1*
print(format('%d',a)) -- 2*



What "format string" should I use so the '2*' line outputs the same
value as the '1*' line?

Thank you very much

Daniel Serodio