[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: problem with formatting large integers
- From: Dirk Laurie <dpl@...>
- Date: Sun, 17 Apr 2011 08:42:19 +0200
This thread seems to contain plenty of well-reasoned arguments
along these lines:
> We're looking at this from different points of view. From my
> point of view ...
> ...
> If you take an alternate view ...
It's clearly a lot of fun, although I haven't read all the posts.
I did read those from Roberto, so the issue itself is quite clear.
Problem:
Some numbers don't format correctly with '%i'.
Reason:
Integers in Lua aren't really integers. They're doubles.
Solution:
Never use '%i'. Always use '%.f'.
Dirk