posted 18 years ago
The long data type is a 64-bit signed two's complement integer. It has a minimum value of -9,223,372,036,854,775,808 and a maximum value of 9,223,372,036,854,775,807 (inclusive).
You're right that is can store 9223372036854775807 different numbers. Since half of them are negative, only half of them can be positive.
Best regards,<br />Mattias