lua-users home
lua-l archive

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


Then this should be in the Manual. The list of some common formatting options won't take much space. Simply as a set of examples.

On 18.03.2010 4:53, Leo Razoumov wrote:
On 2010-03-17, GrayFace<sergroj@mail.ru>  wrote:
No way, "%.0f" is exotic. Still, I think it's also as exotic in Lua, so
doesn't deserve a specific mention. I always used "%s" in Lua.

Unfortunately, "%s" does not cut it.

   ("%s"):format(2^48) -->  2.8147497671066e+14

is floating point format, not an integer. My problem is to print out
long *integer*,
something what you do with printf "%lld" in C.

--Leo--



--

___________________________________________
Best regards,
Sergey Rozhenko                 mailto:sergroj@mail.ru