Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
DOUBLE PRECISION
◄Up► ◄Contents► ◄Index► ◄Back►
─────DOUBLE PRECISION───────────────────────────────────────────────────────
Action
Specifies the DOUBLE PRECISION type for user-defined names.
Syntax
DOUBLE PRECISION vname [ [attrs] ] [(dim)] [/values/]
[, vname[ [attrs] ] [(dim)] [/values/] ]...
Parameter Description
vname Name of the variable or function. Cannot be
the name of a subroutine or main program.
[attrs] An optional list of attributes, separated by
commas. Valid attributes are: ALIAS, ALLOCATABLE,
C, EXTERN, FAR, HUGE, NEAR, PASCAL, REFERENCE,
VALUE.
dim A dimension declarator. Specifying <dim> declares
<vname> as an array.
values A list of constants to initialize <vname> to,
separated by commas.
Remarks
The name <vname> is defined for the entire program unit, and
cannot be defined by any other type statement in that program
unit.
DOUBLE PRECISION statements must precede all executable
statements.
A DOUBLE PRECISION variable is accurate to 14 or 15 decimal
digits.
DOUBLE PRECISION and REAL*8 are the same data type.
Example
DOUBLE PRECISION varnam
-♦-