Turbo Pascal has ten predefined ordinal:
Five of thesetypes denote a specific subset of the whole numbers, as shown here:
Type Range Size
Shortint 128..127 8-bit
Integer -32768..32767 16-bit
Longint -2147483648..2147483647 32-bit
Byte 0.255 8-bit
Word 0.65535 16-bit
The other five predefined ordinal types are the booleans, , , and .
Two other classes of user-defined ordinal types areand .
These standard functions can be used with all ordinal types: