lua-users home
lua-l archive

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


On 2011-Dec-16 (Fri) at 16:33 (-0200), Luiz Henrique de Figueiredo wrote:

>> Lua 5.2.0 has been frozen and is now available at
>> 	http://www.lua.org/ftp/lua-5.2.0.tar.gz
>> 
>> [ - - - ]
>> 
>> All feedback welcome. Thanks.
>> --lhf

   $ lua
   Lua 5.1.4  Copyright (C) 1994-2008 Lua.org, PUC-Rio

   > for n = 2^31-2, 2^31+2 do print( string.format( "%i", n ) ) end
   2147483646
   2147483647
   -2147483648
   -2147483648
   -2147483648

   > print( string.format( "%i", 2^53 ) )
   -2147483648

   #--------------------------------------------------------------------

   $ lua
   Lua 5.2.0  Copyright (C) 1994-2011 Lua.org, PUC-Rio

   > for n = 2^31-2, 2^31+2 do print( string.format( "%i", n ) ) end
   2147483646
   2147483647
   2147483648
   2147483649
   2147483650

   > print( string.format( "%i", 2^53 ) )
   9007199254740992

   #--------------------------------------------------------------------

Luiz, Roberto,

   Feedback? -- "thank you, thank you, thank you, thank you, thank you!"

   Yes, it will indeed be a Happy Christmas :-)

Joseph

------------------------------------------------------------------------
Joseph Manning / Computer Science / UCC Cork Ireland / manning@cs.ucc.ie
------------------------------------------------------------------------