[next] [previous] [contents]

  5.5 Declarations and Data Types
  Following are methods for creating variables and specifying
  data types:

  .
        Implicit data typing
  .
        Explicit data typing

  With implicit data typing, BASIC creates and specifies a data
  type for a variable the first time you reference it in your pro-
  gram. With explicit data typing, you must use one of four
  declarative statements (see
Section 5.5.2) to name and type
  your program values.

  Following are the data types you can specify:

  .
        Integer (INTEGER)
  .
        Floating-point (REAL)
  .
        String (STRING)
  .
        Packed Decimal (DECIMAL)
  .
        Record File Address (RFA)

  Within the INTEGER and REAL data types there are fur-
  ther subdivisions: BYTE, WORD, or LONG for INTEGER
  and SINGLE, DOUBLE, GFLOAT, or HFLOAT for REAL.
  Choosing one of these subtypes lets you control the following:

  .
        The amount of storage required for the value; its con-
        tainer size
  .
        The range and precision that the value can accept

  For more information about data types, see Chapter 8.