Short Integer

From the Oblivion ConstructionSet Wiki
Revision as of 19:50, 9 March 2018 by imported>Lubronbrons
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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