[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
An ordinal type is a range of whole numbers. It includes integer types, character types and subrange types of them.
A character type is represented by the intrinsic type `Char' which
can hold elements of the operating system's character set (usually ASCII).
Conversion between character types and ordinal types is possible with the
intrinsic functions Ord
and Chr
or type casting techniques.
type Foo: Char; { foo can hold a character } Num: '0' .. '9'; { Can hold decimal ciphers, is a subrange type of Char } |