[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: formatting long integers
- From: Leo Razoumov <slonik.az@...>
- Date: Wed, 17 Mar 2010 18:53:44 -0400
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--