Skip to content

Longint

Paul Squires edited this page Sep 19, 2026 · 1 revision

Home › Standard Data Types › LongInt

LongInt

Standard data type: 64 bit signed

Syntax

Dim variable As LongInt

Description

A 64-bit signed whole-number data type. Can hold values from -9 223 372 036 854 775 808 to 9 223 372 036 854 775 807. Corresponds to a signed QWORD.

Remarks

Dialect Differences

  • Not available in the -lang qb dialect unless referenced with the alias __Longint.

Differences from QB

  • New to FreeBASIC

See also

Examples

Dim x As LongInt = &H8000000000000000

  Dim y As LongInt = &H7FFFFFFFFFFFFFFF

  Print "LongInt Range = "; x; " to "; y

Output:

LongInt Range = -9223372036854775808 to  9223372036854775807

Category: Standard Data Types
Kind: keyword


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