Difference between revisions of "Long Integer"
Jump to navigation
Jump to search
imported>ShadowDancer m (typo) |
imported>DragoonWraith (longs are actually floats in Oblivion) |
||
Line 1: | Line 1: | ||
'''Long''' is an integer format that uses 32 bit for data. | '''Long''' is an integer format that uses 32 bit for data. The highest bit is the sign, so the variable ranges from -2^31 (-2147483648) to 2^31-1 (2147483647). | ||
However, in Oblivion, all longs are actually stored as [[Variable types: float|floats]], so they experience the same limitations as floats, and so cannot actually reach the ranges that a long should be able to reach (see the float article for more information). | |||
[[Category:Variables]] | [[Category:Variables]] |
Revision as of 21:21, 15 August 2006
Long is an integer format that uses 32 bit for data. The highest bit is the sign, so the variable ranges from -2^31 (-2147483648) to 2^31-1 (2147483647).
However, in Oblivion, all longs are actually stored as floats, so they experience the same limitations as floats, and so cannot actually reach the ranges that a long should be able to reach (see the float article for more information).