0% found this document useful (0 votes)
860 views

FreeBASIC Types

This document describes the standard data types in FreeBASIC, including integer, floating point, and string types. It lists the value range and size of each type such as BYTE, SHORT, INTEGER, SINGLE, DOUBLE, STRING, and more. It also provides examples of how to define variables of each type using the DIM statement.

Uploaded by

Paolo_R
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
860 views

FreeBASIC Types

This document describes the standard data types in FreeBASIC, including integer, floating point, and string types. It lists the value range and size of each type such as BYTE, SHORT, INTEGER, SINGLE, DOUBLE, STRING, and more. It also provides examples of how to define variables of each type using the DIM statement.

Uploaded by

Paolo_R
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

FreeBASIC standard data types

Data type

Integers

Floating
points
Strings

Value range

Size

BYTE

-128

127

8 bits

UBYTE

255

8 bits

SHORT

-32'768

32'767

16 bits

USHORT

65365

16 bits

INTEGER [%]

-2'147'483'648

2'147'483'647

32 bits

UINTEGER

4'294'967'295

32 bits

LONG [&] (same as INTEGER)

-2'147'483'648

2'147'483'647

32 bits

LONGINT

-9'223'372'036'854'775'808

9'223'372'036'854'775'807

64 bits

ULONGINT

18'446'744'073'709'551'615

64 bits

SINGLE [!]

1.1E-38

3.43E+38 (6 digits after comma)

32 bits

DOUBLE [#]

2.2E-308

1.7E+308 (15 digits after comma)

64 bits

STRING [$]

0 Bytes

2 Gigabytes

8 bits/char

ZSTRING (null terminated string)

0 Bytes

2 Gigabytes

8 bits/char

WSTRING (wide-chars string))

0 Bytes

2 Gigabytes

16 bits/char

Defining variables:

Examples:

DIM var [xx TO yy] AS type

DIM Counter AS SHORT


DIM MyArray (1 TO 300) AS STRING

Written by Mateusz Viste Fox

http://www.the.killer.webpark.pl

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy