[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: print(268435456 + 1)
- From: "Brian Weed" <bw@...>
- Date: Fri, 01 Sep 2006 11:48:12 -0400
Aaron Brown wrote:
This is on Win32 (Lua is part of our game engine). We did not modify
LUA_NUMBER. It's still double.
Lua is compiled as a static lib via Visual C++ 6.0. The app is compiled
via Visual Studio 2005.
Brian Weed wrote:
Is there something about adding numbers that I should know
print(0x10000000 + 0x00000001)
print(0x10000000 + 0x00000002)
I get 268435456, 268435457, and 268435458. My first guess
is that you're using (single-precision) floats instead of
doubles. What platform are you on? Did you change
LUA_NUMBER when compiling?