Skip to content

LONG


Standard data type: 32-bit signed integer

Syntax

` dim variable as Long

`

Description

32-bit signed whole-number data type. Can hold values from -2147483648 to 2147483647. Corresponds to a signed DWORD.

Examples

start GeSHi

vb
  Dim x As Long = &H80000000
  Dim y As Long = &H7FFFFFFF
  Print "Long Range = "; x; " to "; y

end GeSHi

Output:

Long Range = -2147483648 to  2147483647

See also

  • Integer
  • Longint
  • Ulong
  • Table with variable types overview, limits and suffixes

Back to DocToc

Translated from FreeBASIC official docs. Contact us for removal if infringed.
FreeBASIC is an open-source project, not affiliated with Microsoft