Double (data type)

Syntax Double
Description A data type used to declare variables capable of holding real numbers with 15–16 digits of precision.
Comments Double variables are used to hold numbers within the following ranges:
Sign Range
Negative 1.797693134862315E308 <= double <=
Positive 4.94066E-324 <= double <= 1.797693134862315E308
The type-declaration character for Double is #. Storage
  • Internally, doubles are 8-byte (64-bit) IEEE values. Thus, when appearing within a structure, doubles require 8 bytes of storage. When used with binary or random files, 8 bytes of storage are required.
Each Double consists of the following
  • A 1-bit sign
  • An 11-bit exponent
  • A 53-bit significand (mantissa)
See Also Currency (data type); Date (data type); Integer (data type); Long (data type); Object (data type); Single (data type); String (data type); Variant (data type); Boolean (data type); DefType (statement); CDbl (function).