Double Data Type

Purpose

Double precision floating-point data type.

Example

Dim name As Double
Dim name#

Description

Type declaration character is #.

Double is the most efficient of the fractional data types, because the processors on current platforms perform floating-point operations in double precision. However, operations with Double are not as fast as with the integral types such as Integer.

A Double occupies 64 bit = 8 bytes with at least 15 digits of precision.

Minimum: _minDbl (-1.79769313486232e+308)

Maximum: _maxDbl (1.79769313486232e+308)

Epsilon: _eps or _epsDbl (2.22044604925031e-016)

Decades Epsilon: _eps10 or _epsDbl10 (1.0e-014)

Smallest value: _smallDbl = 2.2250738585072e-308)

Smallest value: _tinyDbl (4.94065645841247e-324)

Example

Dim d As Double = 2.10

Local Double d1, d2#

Const DD = 1#

Const DD_1 = _eps

See Also

Boolean, Byte, Card, Short, Word, Int16, Long, Int, Integer, Int32, Int64, Large, Single, Double, Currency, Date, Handle, String, Variant, Object

{Created by Sjouke Hamstra; Last updated: 03/10/2014 by James Gaite}