Difference between revisions of "Short Integer"

130 bytes added ,  17:02, 17 September 2006
global shorts are floats
imported>DragoonWraith
m (Variable types: shortint moved to Short Integer)
imported>DragoonWraith
(global shorts are floats)
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)
If you declare a Global short, it will actually be a float, and so will not round off decimal values like a short normally does.


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