Following table gives an overview for the standard types of Modula-2:
Standard Type | Size | Representation |
BITSET | 4 | 32 elements, CARDINAL({31}) = 1 |
BOOLEAN | 1 | ORD(FALSE) = 0, ORD(TRUE) = 1 |
CARDINAL | 4 | |
CHAR | 1 | ASCII for [0C..177C], undefined for [200C..377C] |
INTEGER | 4 | |
LONGCARD | 4 | |
LONGINT | 4 | |
LONGREAL | 16 | ANSI/IEEE Standard 754-1985 |
REAL | 8 | ANSI/IEEE Standard 754-1985 |