Difference between revisions of "Long Integer"
Jump to navigation
Jump to search
imported>JOG |
imported>JOG |
||
Line 1: | Line 1: | ||
'''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) | '''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) | ||
There are no restrictions when using a long as a local variable within a script, but when you use a [[Globals|global]] variable, it's internally stored as a [[Floating_point_variables|float]], and there might be a precission issue with very large values. | There are no restrictions when using a long as a local variable within a script, but when you use a [[Globals|global]] variable, it's internally stored as a [[Floating_point_variables|float]], and there might be a precission issue with very large values. | ||
[[Category:Variables]] | [[Category:Variables]] |
Revision as of 10:41, 24 March 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)
There are no restrictions when using a long as a local variable within a script, but when you use a global variable, it's internally stored as a float, and there might be a precission issue with very large values.