You need to sign in to do that
Don't have an account?
sroberts_ME
Long max value
The max for a long is 2^63 >> 99,999,999,999
Long max = 99999999999;
Error: Compile Error: Invalid Integer: 99999999999
WHY? its not an integer, at all. It is within the limits for the data type...
Try this :
Long l = 99999999999L ;
Thanks
Ankit Arora
Blog | Facebook | Blog Page
All Answers
From this Link:
http://www.salesforce.com/us/developer/docs/apexcode/Content/langCon_apex_primitives.htm
It is NOT an int, it is a long.
I'm sorry, your right, I read the error message and it stuck with me. That seems odd, it appears that it should work.
Try this :
Long l = 99999999999L ;
Thanks
Ankit Arora
Blog | Facebook | Blog Page