Skip to content

Standard Data Types

Paul Squires edited this page Oct 14, 2026 · 2 revisions

Home › Standard Data Types › Standard Data Types

Standard Data Types

Built-in data types

Integer types

Types that store integer values, whose range is determined by the size of the data type and its signedness.

Floating-point types

Types that store real number values, whose range and precision is determined by the size of the data type.

Boolean types

Types that store boolean values.

Procedure Types

Types that store pointers to procedures

Data Type Modifiers

Specifies additional characteristics of a standard or user-defined data type.

String types

Types that store or point to an array of characters.

Class types

Types that provide special capabilities to be used directly or to be extended by user-defined types

Integer types

Byte and UByte

8-bit wide data types that store integer values.

Short and UShort

16-bit wide data types that store integer values.

Long and ULong

32-bit wide data types that store integer values.

Integer and UInteger

32-bit or 64-bit wide data types that store integer values.

LongInt and ULongInt

64-bit wide data types that store integer values.

Floating-point types

Single

32-bit wide data types that store real number values.

Double

64-bit wide data types that store real number values.

Boolean types

Boolean

1-bit wide data types that store boolean values.

Procedure Types

Function Pointer

Types that store a pointer to a function procedure

Sub Pointer

Types that store a pointer to a sub procedure

Data Type Modifiers

Const

Specifies a read only type.

Pointer and Ptr (Shortcut For 'Pointer')

Modifies types to be pointer types.

Unsigned

Specifies an unsigned integer type.

Alias (Modifier)

Modifies how a datatype is linked with other languages (Name mangling).

String types

String

Fixed-length and variable-length strings with built-in memory management.

ZString

Fixed-length and variable-length null-terminated strings.

WString

Fixed-length and variable-length null-terminated strings of wide characters.

Class types

Object

Super class providing run-time type information

See also


Category: Standard Data Types


Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.

Clone this wiki locally