lua-users home
lua-l archive

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


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