Short INT / Unsigned Short INT

Blitz3D Forums/Blitz3D Beginners Area/Short INT / Unsigned Short INT

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Please tell me there's already a way to convert between a SHORT and an UNSIGNED SHORT in blitz.


An INT (32bits/4bytes) is -2147483648 to 2147483647
A unsigned INT (32bits) is 0 to 4294967295
A SHORT INT (16bits/2bytes) is -32128 to 32127
A unsigned SHORT INT (16bit) is 0 to 65535
A Char (8bit/1byte) is -128 to 127
A unsigned Char (8bit/1byte also called an Octet) is 0 to 255