[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: problem with formatting large integers
- From: "Joseph Manning" <manning@...>
- Date: Fri, 15 Apr 2011 22:30:11 +0100 (IST)
On Fri, April 15, 2011 22:18, Joseph Manning wrote:
>> There's hardly a genuine situation in which
>>
>> string.format( "%i", 2^31 ) --> -2147483648
>>
>> is a reasonable or desirable outcome?
( assuming, of course, that 2^31 falls within the range of integers
which can be represented exactly in the particular Lua implementation;
this is certainly the case in the original posting )
------------------------------------------------------------------------
Joseph Manning / Computer Science / UCC Cork Ireland / manning@cs.ucc.ie
------------------------------------------------------------------------