This is what I get in LiveTuner:
The result is obviously wrong, and probably has to do with the fact that Lua has only a single data type, which should be "double" (but can be platform-specific afaik)
But there should be more than enough precision in 64-bit double to handle this operation. Even 32-bit integer could do it. Can anyone tell me what is the reason or if it gives you the same thing? I'm running win7 32-bit.
Code:
> print(2519 * 10000 + 2309)
InGame: 2519230[COLOR="Red"]8[/COLOR]
The result is obviously wrong, and probably has to do with the fact that Lua has only a single data type, which should be "double" (but can be platform-specific afaik)
But there should be more than enough precision in 64-bit double to handle this operation. Even 32-bit integer could do it. Can anyone tell me what is the reason or if it gives you the same thing? I'm running win7 32-bit.