[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Format and 'long' numbers
- From: "Daniel Serodio <mailing_lists@...>" <mailing_lists@...>
- Date: Wed, 15 Jan 2003 16:50:55 -0000
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