lua-users home
lua-l archive

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


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--