Difference between revisions of "Short Integer"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>JOG
 
imported>Lubronbrons
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''Short''' is an integer format that uses 16 bit for data. The highest bit is the sign, so the variable ranges from -2^15(-32768) to 2^15-1 (32767)
'''Short''' is an integer format that uses 16 bit for data.  
 
The highest bit is the sign, so the variable ranges from -2^15 (-32768) to 2^15-1 (32767)
 
NOTE : Long ago, an OBSE developer mentioned that, internally, the engine stores ALL vars as floats. (QQuix) so it is no problem if you set short value above 32767, the maximum limit positive number is 2,147,483,647 (or hexadecimal 7FFF,FFFF16)
 
==See Also==
[[Long Integer]]<BR>
[[Floating Point]]


[[Category:Variables]]
[[Category:Variables]]

Latest revision as of 19:50, 9 March 2018

Short is an integer format that uses 16 bit for data.

The highest bit is the sign, so the variable ranges from -2^15 (-32768) to 2^15-1 (32767)

NOTE : Long ago, an OBSE developer mentioned that, internally, the engine stores ALL vars as floats. (QQuix) so it is no problem if you set short value above 32767, the maximum limit positive number is 2,147,483,647 (or hexadecimal 7FFF,FFFF16)

See Also[edit | edit source]

Long Integer
Floating Point