Talk:Integer
Jump to navigation
Jump to search
Integer size vs. Range
In the article, it says that a long has twice the memory and range of a normal int, when the range is actually the square of the int's range (in binary, adding a bit doubles the range). Same for short; its range is the square root of the int's range