Simple Variable Types
Here are the simple variable types supported by Tibbo BASIC and Tibbo C.
Tibbo BASIC |
Tibbo C |
Range |
Space in memory |
char |
[signed] char |
–128 to 127 |
1 byte |
byte |
unsigned char |
0 to 255 |
1 byte |
short or integer |
[signed] short or [signed] int |
–32768 to 32767 |
2 bytes |
word |
unsigned short or unsigned int |
0 to 65535 |
2 bytes |
long |
[signed] long |
–2147483648 to 2147483647 |
4 bytes |
dword |
unsigned long |
0 to 4294967295 |
4 bytes |
real or float |
float |
±1.175494E-38 to ±3.402823E+38 (IEEE floating point format) |
4 bytes |
up to 255 byte characters |
2 bytes + capacity |
||
boolean |
bool |
True or False |
1 byte |
Some variable types may be unsupported on certain platforms.
You will find related information in the "Supported Variable Types" topic of each platform's documentation (for example, the EM1000's is here).
String is a special variable type in Tibbo BASIC and C. They are a subject of a separate topic.