Talk:Integer: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with '==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…')
 
Line 1: Line 1:
==Integer size vs. Range==
==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
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 [[User:Quanta|quanta]] 03:50, 19 January 2010 (UTC)

Revision as of 20:50, 18 January 2010

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 quanta 03:50, 19 January 2010 (UTC)