Double
Standard data type: 64 bit floating point
Syntax
`
Dim variable As Double
`
Description
Double is a 64-bit, floating-point data type used to store precise decimal numbers. They can hold values in a range of -2.2E-308 to +1.7E+308. Its precision is of 15 decimal digits. They are similar to `Single` data types but more precise and with an extended range.
As precise as doubles are, they still have limited accuracy which can lead to significant inaccuracies if not used properly.
Example
`
'Example of using a double variable.
Dim a As Double
a = 1.985766472453666
Print a
Sleep
`
Differences from QB

- None

See also

- `Single` Less precise float type
- `CDbl`
- TblVarTypes Table with variable types overview, limits and suffixes