Int64 Constants Range
Posted on 2001-07-22
I wonder why Delphi will not allow me to input this number in my source code (as a constant):
i := -9223372036854775808;
"i" is defined as a Int64 and should actually be able to hold this value! Most remarkable is that this works though:
i := -9223372036854775807-1;
And this code also displays exactly the number I could not enter?! So appearantly Delphi programs can handle this large negative number, but the IDE will not allow you to enter them?
Am I missing something here? I think this is weird?!
I'm not stuck or anything, my program works but.. I just wonder if anyone knows *why* Delphi behaves like this??