[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: 5.3 unsigned fall-over?
- From: Raphael Lydia Bertoche <rbertoche@...>
- Date: Sun, 23 Mar 2014 17:08:34 -0300
This wont apply for double. Now Integers won't become double anymore, loosing precision. They may only overflow.
Lua 5.3.0 (work2) Copyright (C) 1994-2014 Lua.org, PUC-Rio
> 1000*1000*1000*1000*1000*1000
1000000000000000000
> 1000*1000*1000*1000*1000*1000*10
-8446744073709551616
> 1000*1000*1000*1000*1000*1000*100
7766279631452241920
> 1000*1000*1000*1000*1000*1000*100.0
1e+20
Lua 5.2.3 Copyright (C) 1994-2013 Lua.org, PUC-Rio
> =1000*1000*1000*1000*1000*1000
1e+18
> =1000*1000*1000*1000*1000
1e+15
> =1000*1000*1000*1000
1000000000000