Contents | Prev | Next | Index


Basic Types

The following basic types are predeclared and denoted by standard identifiers. They have associated operators. Also, some of the standard function procedures apply to basic types, too.

Type Size Values
BOOLEAN 1 truth values TRUE and FALSE
CHAR 2 UNICODE characters, incl. ASCII set
SHORTINT 1 -128 .. 127
INTEGER 2 -32768 .. 32767
LONGINT 4 -2147483648 .. 2147483647
REAL 4 single precision IEEE 754 numbers
LONGREAL 8 double precision IEEE 754 numbers
SET 4 set of integers between 0 and 31

The integer and real types are called numeric types. They form a hierarchy: Each larger type includes the values of the smaller types:

LONGREAL > REAL > LONGINT > INTEGER > SHORTINT


Contents | Prev | Next | Index

Canterbury Oberon-2 for JVM  (Last documentation update Jun 2, 2000)
Copyright © 1998 Mill Hill & Canterbury Corporation, Ltd. All rights reserved
Please send any comments or corrections to mhc@webcom.com