Long (data type)

Syntax

Long

Description

Long variables are used to hold numbers (with up to ten digits of precision) within the following range:

  –2,147,483,648 <= Long <= 2,147,483,647

Internally, longs are 4-byte values. Thus, when appearing within a structure, longs require 4 bytes of storage. When used with binary or random files, 4 bytes of storage are required.

The type-declaration character for Long is &.

See Also

Currency (data type); Date (data type); Double (data type); Integer (data type); Object (data type); Single (data type); String (data type); Variant (data type); Boolean (data type); DefType (statement); CLng (function).

More information

L