Difference between revisions of "Short Integer"
Jump to navigation
Jump to search
imported>Antares |
imported>Lubronbrons |
||
Line 2: | Line 2: | ||
The highest bit is the sign, so the variable ranges from -2^15 (-32768) to 2^15-1 (32767) | 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== | ==See Also== |
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)