Difference between revisions of "Short Integer"

Jump to navigation Jump to search
246 bytes added ,  19:50, 9 March 2018
no edit summary
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==
Anonymous user

Navigation menu