Sign in Join
Wiki copytemporary

Data type

Bahasa Indonesia · Deutsch · English · Español · Français · Italiano · Русский

General

This page provides an assortment of data types in Free Pascal.

A data type is a template for a data field.

The data type of a field defines how the compiler and processor interpret it's content.

The visibility of a data field depends on the location of it's declaration.

Integer types

Unsigned types

Data fields of unsigned integral types can only contain positive integral numbers.

Signed types

Data fields of signed integral types can contain positive and negative integral numbers.

Floating-point types

Data fields of a floating-point type can contain:

  1. positive and negative integral numbers with possible round-off errors.
  2. positive and negative floating-point numbers.

Boolean types

Data fields of boolean type contain truth values.

Enumeration types

Data fields of an enumeration type are "lists" (enumerations...) of integral unsigned constants.

Char types

Char types with single byte encoding

See the overview of the different character and string types.

Char types with multi byte encoding

(The encoding with 2 or 4 bytes is system dependent.\

See the overview of the different character and string types.

Variant types

Constants

Structural types

Subrange types

Pointer

Classes and objects

See also


From the Free Pascal wiki, page "Data type", as it stood on 2021-08-29 after a change by Mozi, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.