[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

### 8.2.2 Ordinal Types

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 }

### See also

section 9.181 Ord, section 9.41 Chr, section 8.7 Type Casts

This document was generated by Frank Heckenbach on May, 10 2002 using texi2html