I'm not sure what to say about something I found, except that it seems inconsolably bad and I'm hoping one of our programming gurus can make some sense of it, because I have no idea what's going on with Fallout 2's calculations.
Please try the following examples in a script of your choice:
Example A:
Output:
result= 1085276160
Example B:
Output:
result= 2147483645
Any insight will be much appreciated, especially if anyone has a way to work around the problem.
Please try the following examples in a script of your choice:
Example A:
Code:
variable test := 0;
test := floor(-5.5);
display_msg("result= " + test);
Output:
result= 1085276160
Example B:
Code:
variable test := 0;
test := (-5 / 2);
display_msg("result= " + test);
Output:
result= 2147483645
Any insight will be much appreciated, especially if anyone has a way to work around the problem.